Hacker News new | ask | show | jobs
by fallingbananna 5 days ago
You could... but I view JSON as a simple format that you could write a recursive parser for in a few hundred lines yourself.

Bringing in compile-time code generation just for defining static JSONs (which is not that common outside of tests, as most JSONs are serialized and deserialized at runtime) sounds like a hard sell.

1 comments

This is just a small part of manifold’s JSON integration. And, yes, the inline aspect is mostly for testing, and it’s awesome there.