vivkin / gason

Lightweight and fast JSON parser for C++
MIT License
338 stars 51 forks source link

JSON_ARRAY and fast iteration #31

Closed egepointr closed 5 years ago

egepointr commented 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.

Many thanks, Ege

vivkin commented 5 years ago

Hi, Yes order is exactly as items appears in source json document

egepointr commented 5 years ago

Thanks @vivkin , we assumed the same. I'd recommend adding it to the documentation.

Have a nice day!