decode+docs+tests: adds support for (array/object/calls).allowEmptyElement to address...
[luajson.git] / tests / test / pass / pass1.json
blob7828fcc1374e9fbf371a67fbe9ea857197c87848
2     "JSON Test Pattern pass1",
3     {"object with 1 member":["array with 1 element"]},
4     {},
5     [],
6     -42,
7     true,
8     false,
9     null,
10     {
11         "integer": 1234567890,
12         "real": -9876.543210,
13         "e": 0.123456789e-12,
14         "E": 1.234567890E+34,
15         "":  23456789012E666,
16         "zero": 0,
17         "one": 1,
18         "space": " ",
19         "quote": "\"",
20         "backslash": "\\",
21         "controls": "\b\f\n\r\t",
22         "slash": "/ & \/",
23         "alpha": "abcdefghijklmnopqrstuvwyz",
24         "ALPHA": "ABCDEFGHIJKLMNOPQRSTUVWYZ",
25         "digit": "0123456789",
26         "special": "`1~!@#$%^&*()_+-={':[,]}|;.</>?",
27         "hex": "\u0123\u4567\u89AB\uCDEF\uabcd\uef4A",
28         "true": true,
29         "false": false,
30         "null": null,
31         "array":[  ],
32         "object":{  },
33         "address": "50 St. James Street",
34         "url": "http://www.JSON.org/",
35         "comment": "// /* <!-- --",
36         "# -- --> */": " ",
37         " s p a c e d " :[1,2 , 3
41 4 , 5        ,          6           ,7        ],
42         "compact": [1,2,3,4,5,6,7],
43         "jsontext": "{\"object with 1 member\":[\"array with 1 element\"]}",
44         "quotes": "&#34; \u0022 %22 0x22 034 &#x22;",
45         "\/\\\"\uCAFE\uBABE\uAB98\uFCDE\ubcda\uef4A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?"
46 : "A key can be any string"
47     },
48     0.5 ,98.6
50 99.44
53 1066
56 ,"rosebud"]