Re:Show HN: A Fast, Malloc-Free C++14 Json Parser and Encoder
by jly on Friday November 14, 2014 @03:07PM
(#8609213)
> JSON wouldn't be my first choice for data storage in situations where I needed to avoid dynamic memory.
I work a lot with very low-resource embedded systems and we like to use JSON host-side for structured data configuration, but convert to BSON (http://bsonspec.org) for target-side storage. This can be parsed and iterated with very low-overhead and no dynamic memory. Similar idea to protocol buffers but with JSON-like data.
Avoiding a build-time conversion would be nice, though, and this idea is interesting.
I work a lot with very low-resource embedded systems and we like to use JSON host-side for structured data configuration, but convert to BSON (http://bsonspec.org) for target-side storage. This can be parsed and iterated with very low-overhead and no dynamic memory. Similar idea to protocol buffers but with JSON-like data.
Avoiding a build-time conversion would be nice, though, and this idea is interesting.