Hacker News new | ask | show | jobs
by kentonv 3572 days 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++/sr...

(There are also similar libraries for Protobuf.)

1 comments

That's..... I want that in my lang.