1

I was reading JSON's succinct language specification and got surprised for this sentence:

Excepting a few encoding details, that completely describes the language.

What are the details which can break those simple rules.

sinuhepop
  • 20,010
  • 17
  • 72
  • 107

1 Answers1

1

See RFC 4627 for the full specification. Specifically related to encoding:

JSON text SHALL be encoded in Unicode. The default encoding is UTF-8.

If your text isn't Unicode, it isn't JSON.

Aaron Brager
  • 65,323
  • 19
  • 161
  • 287
  • Nitpick: That RFC is not a spec. It says: _"This memo provides information for the Internet community. It does not specify an Internet standard of any kind."_ – Dheeraj Vepakomma Jul 03 '15 at 09:47
  • Rather, see [ECMA-404 The JSON Data Interchange Standard](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf) (linked from json.org) – ShreevatsaR Mar 28 '17 at 01:25