Hacker News .hnnew | past | comments | ask | show | jobs | submitlogin

`'{"a": 1e2}'` is YAML not JSON. What a weird argument.


That string is a valid JSON document, and it's also a valid YAML document.

The problem is that it parses to different values in those two syntaxes.


> That string is a valid JSON document

No it is not?... A valid JSON document cannot start with ` or with '. You could argue that the poster added ` in the hopes of getting it formatted, but not the '.


The string being discussed is:

  {"a": 1e2}
There are no single quotes or backticks in it. Those are an artifact of posting on Hacker News.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: