mirror of
https://github.com/kgabis/parson.git
synced 2024-11-24 14:05:30 +00:00
a1c356eaa9
This closes #42.
32 lines
1001 B
Plaintext
32 lines
1001 B
Plaintext
{
|
|
"string" : "lorem ipsum",
|
|
"utf string" : "\u006corem\u0020ipsum",
|
|
"utf-8 string": "あいうえお",
|
|
"surrogate string": "lorem\uD834\uDD1Eipsum\uD834\uDF67lorem",
|
|
"positive one" : 1,
|
|
"negative one" : -1,
|
|
"pi" : 3.14,
|
|
"hard to parse number" : -3.14e-4,
|
|
"boolean true" : true,
|
|
"boolean false" : false,
|
|
"null" : null,
|
|
"string array" : ["lorem", "ipsum"],
|
|
"x^2 array" : [0, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100],
|
|
"/*" : null,
|
|
"object" : { "nested string" : "str",
|
|
"nested true" : true,
|
|
"nested false" : false,
|
|
"nested null" : null,
|
|
"nested number" : 123,
|
|
"nested array" : ["lorem", "ipsum"],
|
|
"nested object" : {"lorem": "ipsum"}
|
|
},
|
|
"*/" : null,
|
|
"/**/" : "comment",
|
|
"//" : "comment",
|
|
"url" : "https:\/\/www.example.com\/search?q=12345",
|
|
"escaped chars" : "\" \\ \/",
|
|
"empty object" : {},
|
|
"empty array" : []
|
|
}
|