Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Serialization
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===JavaScript=== Since ECMAScript 5.1,<ref>{{cite web|url=https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON#Specifications|title=JSON|website=MDN Web Docs|access-date=22 March 2018}}</ref> [[JavaScript]] has included the built-in <code>JSON</code> object and its methods <code>JSON.parse()</code> and <code>JSON.stringify()</code>. Although JSON is originally based on a subset of JavaScript,<ref>{{cite web|url=http://www.json.org/|title=JSON|website=www.json.org|access-date=22 March 2018}}</ref> there are boundary cases where JSON is not valid JavaScript. Specifically, JSON allows the [[Unicode#Newlines|Unicode line terminators]] {{unichar|2028|LINE SEPARATOR}} and {{unichar|2029|PARAGRAPH SEPARATOR}} to appear unescaped in quoted strings, while ECMAScript 2018 and older does not.<ref name="json-2028">{{cite web|url=http://timelessrepo.com/json-isnt-a-javascript-subset|title=JSON: The JavaScript subset that isn't|author=Holm, Magnus|date=15 May 2011|publisher=The timeless repository|access-date=23 September 2016|archive-date=13 May 2012|archive-url=https://web.archive.org/web/20120513012409/http://timelessrepo.com/json-isnt-a-javascript-subset|url-status=dead}}</ref><ref>{{cite web|url=https://tc39.github.io/proposal-json-superset/|title=TC39 Proposal: Subsume JSON|date=22 May 2018|publisher=ECMA TC39 committee}}</ref> See [[JSON#Data portability issues|the main article on JSON]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)