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.

4

1 回答 1

1

有关完整规范,请参阅RFC 4627。具体与编码有关:

JSON 文本应以 Unicode 编码。默认编码为 UTF-8。

如果您的文本不是 Unicode,则它不是 JSON。

于 2015-04-24T14:57:36.750 回答