Closed egepointr closed 5 years ago
Hi,
First off - many thanks for such a great library.
when using for (auto i : obj) to loop through an array (JSON_ARRAY), are we guaranteed for the order? Docs don't seem to specify it so wanted to check.
for (auto i : obj)
JSON_ARRAY
Many thanks, Ege
Hi, Yes order is exactly as items appears in source json document
Thanks @vivkin , we assumed the same. I'd recommend adding it to the documentation.
Have a nice day!
Hi,
First off - many thanks for such a great library.
when using
for (auto i : obj)
to loop through an array (JSON_ARRAY
), are we guaranteed for the order? Docs don't seem to specify it so wanted to check.Many thanks, Ege