Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow piecemeal serialization of arrays. #267

Open
beached opened this issue Nov 2, 2021 · 0 comments
Open

Allow piecemeal serialization of arrays. #267

beached opened this issue Nov 2, 2021 · 0 comments

Comments

@beached
Copy link
Owner

beached commented Nov 2, 2021

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant