Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

You implicitly need a schema in JSON too: it's the API documentation.

Then, every implementer in a statically typed language needs to translate the JSON format into structures in their own language. And this is impossible to automate, unless the JSON API uses a formally defined schema (eg. OpenAPI or GraphQL schemas), but then we're back to square 1.

If you don't care about that (eg. in dynamically typed languages), you can parse XML just like you parse JSON, using something like https://github.com/martinblech/xmltodict



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: