3 ms·
When I'm forced to use JSON, I often do it by defining a Cap'n Proto schema and using capnp::JsonCodec to parse / serialize that schema as JSON. https://github
by kentonv 10y ago
When I'm forced to use JSON, I often do it by defining a Cap'n Proto schema and using capnp::JsonCodec to parse / serialize that schema as JSON.
https://github.com/sandstorm-io/capnproto/blob/master/c++/src/capnp/compat/json.h https://github.com/sandstorm-io/capnproto/blob/master/c++/sr...
(There are also similar libraries for Protobuf.)
- heavenlyhash 10y agoThat's..... I want that in my lang.