Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
prodigal_erik
on Oct 26, 2016
|
parent
|
context
|
favorite
| on:
Parsing JSON is a Minefield
The standard Java library includes a JavaScript interpreter, so there has to be a parser for object literals in there somewhere.
tree_of_item
on Oct 26, 2016
[–]
Object literals aren't JSON, though.
Volt
on Oct 27, 2016
|
parent
[–]
JS has stringify and parse, so there ought to be a JSON parser somewhere.
dfox
on Oct 27, 2016
|
root
|
parent
[–]
One thing that the article mentions is that there are in fact strings that are valid JSON but not valid JS object literals.
Macha
on Oct 29, 2016
|
root
|
parent
[–]
https://developer.mozilla.org/en/docs/Web/JavaScript/Referen...
A modern JS implementation should also have a JSON parser
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: