jansson/test/testdata/valid

69 lines
1.3 KiB
Plaintext
Raw Normal View History

==== empty-string ====
2009-07-10 02:01:40 +08:00
[""]
==== short-string ====
2009-07-10 02:01:40 +08:00
["a"]
==== simple-ascii-string ====
2009-07-10 02:01:40 +08:00
["abcdefghijklmnopqrstuvwxyz1234567890 "]
==== utf-8-string ====
["€þıœəßð some utf-8 ĸʒ×ŋµåäö𝄞"]
==== string-escapes ====
2009-07-10 02:01:40 +08:00
["\"\\\/\b\f\n\r\t"]
==== one-byte-utf-8 ====
2009-07-15 01:47:57 +08:00
["\u002c one-byte UTF-8"]
==== two-byte-utf-8 ====
2009-07-15 01:47:57 +08:00
["\u0123 two-byte UTF-8"]
==== three-byte-utf-8 ====
2009-07-15 01:47:57 +08:00
["\u0821 three-byte UTF-8"]
==== utf-surrogate-four-byte-encoding ====
2009-07-15 01:47:57 +08:00
["\uD834\uDD1E surrogate, four-byte UTF-8"]
==== escaped-utf-control-char ====
2009-07-27 02:51:45 +08:00
["\u0012 escaped control character"]
==== simple-int-0 ====
2009-07-10 02:01:40 +08:00
[0]
==== simple-int-1 ====
2009-07-10 02:01:40 +08:00
[1]
==== simple-int-123 ====
2009-07-10 02:01:40 +08:00
[123]
==== negative-zero ====
2009-07-10 02:01:40 +08:00
[-0]
==== negative-one ====
2009-07-10 02:01:40 +08:00
[-1]
==== negative-int ====
2009-07-10 02:01:40 +08:00
[-123]
==== simple-real ====
2009-07-10 02:01:40 +08:00
[123.456789]
==== real-exponent ====
2009-07-10 02:01:40 +08:00
[123e45]
==== real-capital-e ====
2009-07-10 02:01:40 +08:00
[1E22]
==== real-positive-exponent ====
2009-07-10 02:01:40 +08:00
[1e+2]
==== real-negative-exponent ====
2009-07-10 02:01:40 +08:00
[1e-2]
==== real-capital-e-positive-exponent ====
2009-07-10 02:01:40 +08:00
[1E+2]
==== real-capital-e-negative-exponent ====
2009-07-10 02:01:40 +08:00
[1E-2]
==== real-fraction-exponent ====
2009-07-10 02:01:40 +08:00
[123.456e78]
==== true ====
2009-07-10 02:01:40 +08:00
[true]
==== false ====
2009-07-10 02:01:40 +08:00
[false]
==== null ====
2009-07-10 02:01:40 +08:00
[null]
==== empty-array ====
2009-07-10 02:01:40 +08:00
[]
==== empty-object-in-array ====
2009-07-10 02:01:40 +08:00
[{}]
==== complex-array ====
2009-07-10 02:01:40 +08:00
[1,2,3,4,
"a", "b", "c",
{"foo": "bar", "core": "dump"},
true, false, true, true, null, false
]
==== empty-object ====
2009-07-10 02:01:40 +08:00
{}
==== simple-object ====
2009-07-10 02:01:40 +08:00
{"a":[]}