anhero / JsonBox

This is a JSON C++ library. It can write and read JSON files with ease and speed.
MIT License
115 stars 60 forks source link

Skipping some values parsing large array #23

Closed mateusazis closed 9 years ago

mateusazis commented 9 years ago

I´m trying to parse the following file (generated by JsonBox itself): https://dl.dropboxusercontent.com/u/94904214/asift_cache.json

However, it seems JsonBox skips some of the entries. I was expecting 1380 entries, but I get only about 1376 entries.

Zylann commented 9 years ago

How do you send the data to JsonBox? Is it from a stream? You should check the open mode, I had the same problem and adding std::ios::binary option fixed it. However it's quite an old issue...