daw_json_link icon indicating copy to clipboard operation
daw_json_link copied to clipboard

Allow piecemeal serialization of arrays.

Open beached opened this issue 2 years ago • 0 comments

Provide a mechanism to output arrays 1 element at a time without creating an iterator. Maybe something like

auto hnd = daw::json::array_start( output_Iterator );
hnd.to_json( value0 );
hnd.to_json( value1 );
hnd.to_json( value2 );
hnd.close( ); // or let go out of scope```

This can work with heterogenous types too.

beached avatar Nov 02 '21 20:11 beached