Hacker News new | ask | show | jobs
by user5994461 3349 days ago
If you want JSON with type checking, use a json schema.

http://json-schema.org/examples.html

Been there for almost a decade. Already supported by all the major json libraries in all the major languages.