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

If your language doesn't come with JSON in the stdlib, you're really on the cutting edge. Or using a language meant for embedding :)


Doesn't Java lack a JSON parser in the standard library?


As of Java 8, the Nashorn JavaScript engine is included by default, and it does support JSON parsing.

[1] http://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/


The standard Java library includes a JavaScript interpreter, so there has to be a parser for object literals in there somewhere.


Object literals aren't JSON, though.


JS has stringify and parse, so there ought to be a JSON parser somewhere.


One thing that the article mentions is that there are in fact strings that are valid JSON but not valid JS object literals.


https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...

A modern JS implementation should also have a JSON parser


> you're really on the cutting edge.

Or the other way around. Think about something like MUMPS.


No, no thank you. Did it for a year. Pretty sure I don't even want to think about doing it again.




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

Search: