Fully header based lib so, easy to include anywhere. It also doesnt have any dependencies, and it doesnt throw exceptions which probably makes it ultimately suitable for embedded. I havent done the comparison but i would expect it to be more robust than anything else listed here. JSON, short for JavaScript Object Notation, is an open standard format that transmits data objects consisting of attribute-value pairs using human-readable text. Paw natively supports JSON Schema and is fully compliant with Swagger and RAML. Power JSON Editor is an easy to use and streamlined Mac app specially designed for application developers that need to import JSON data from the web or PLSIT files.
Implementation with any library – assuming your printf/sprintf implementation itself is lightweight of course.ĮDIT: actually let me take that back, RapidJson allows on-stack allocation only through its MemoryPoolAllocator and actually makes this a default for its GenericReader. Paw is a full-featured and beautifully designed Mac app that makes.
The solutions posted above all do dynamic memory allocation, hence will be inevitably end up slower at some point, depending on the data structure – and will be dangerous to include in a heap constrained environment like an embedded system.īenchmarks of vjson, rapidjson and sajson here : if you are interested in that sort of thing.Īnd to answer your “writer” part of the question i doubt that you could beat an efficient printf('',name,value)
Ugliest interface possible, but does what you ask.