3 ms·
> 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
by jly 12y ago
> 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 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.