WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #40560, comment 8


Ignore:
Timestamp:
02/22/2018 09:29:22 PM (4 years ago)
Author:
jnylen0
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #40560, comment 8

    initial v1  
    55> Any character may be escaped.  If the character is in the Basic Multilingual Plane (U+0000 through U+FFFF), then it may be represented as a six-character sequence ... Alternatively, there are two-character sequence escape representations of some popular characters.
    66
    7 So even the string `"\u0048\u0065\u006c\u006c\u006f"` is perfectly valid JSON.  Proof: https://jsonlint.com/?json=%22\u0048\u0065\u006c\u006c\u006f%22
     7So even the string `"\u0048\u0065\u006c\u006c\u006f"` is perfectly valid JSON, equivalent to `"Hello"`.  Proof: https://jsonlint.com/?json=%22\u0048\u0065\u006c\u006c\u006f%22
    88
    99Again, if this is an issue for you, it means the library or technique you are using to parse JSON is incorrect.