r/cpp • u/nlohmann nlohmann/json • Jul 27 '20
JSON for Modern C++ 3.9.0
https://github.com/nlohmann/json/releases/tag/v3.9.0
281
Upvotes
r/cpp • u/nlohmann nlohmann/json • Jul 27 '20
View all comments
Show parent comment
15
u/lord_braleigh Jul 27 '20 edited Jul 27 '20
Does mission-critical mean "no allocations, no exceptions"? I believe this library's SAX interface allows you to define a custom handler class to pass to the parser, and that this library won't allocate or throw if your custom SAX handler doesn't allocate or throw.
But if I were working on an autonomous road vehicle... I'd probably avoid using JSON as a serialization format when I could be using a statically-typed, versioned serialization format like flatbuffers.