{
 "valid": [
  {
   "name": "key order and unicode",
   "object": {
    "b": 1,
    "a": "é",
    "é": [
     3,
     2,
     1
    ],
    "A": {
     "z": true,
     "y": " "
    }
   },
   "canonical": "{\"A\":{\"y\":\" \",\"z\":true},\"a\":\"é\",\"b\":1,\"é\":[3,2,1]}",
   "canonical_hex": "7b2241223a7b2279223a22e280a8222c227a223a747275657d2c2261223a22c3a9222c2262223a312c22c3a9223a5b332c322c315d7d"
  },
  {
   "name": "integer bounds",
   "object": {
    "max": 9007199254740991,
    "min": -9007199254740991,
    "zero": 0
   },
   "canonical": "{\"max\":9007199254740991,\"min\":-9007199254740991,\"zero\":0}",
   "canonical_hex": "7b226d6178223a393030373139393235343734303939312c226d696e223a2d393030373139393235343734303939312c227a65726f223a307d"
  },
  {
   "name": "escapes",
   "object": {
    "s": "line\nfeed \"quoted\" \\ back \u0000 nul"
   },
   "canonical": "{\"s\":\"line\\nfeed \\\"quoted\\\" \\\\ back \\u0000 nul\"}",
   "canonical_hex": "7b2273223a226c696e655c6e66656564205c2271756f7465645c22205c5c206261636b205c7530303030206e756c227d"
  },
  {
   "name": "empty containers",
   "object": {
    "a": [],
    "o": {},
    "s": ""
   },
   "canonical": "{\"a\":[],\"o\":{},\"s\":\"\"}",
   "canonical_hex": "7b2261223a5b5d2c226f223a7b7d2c2273223a22227d"
  },
  {
   "name": "32 levels of nesting with a number inside the innermost",
   "object": [
    [
     [
      [
       [
        [
         [
          [
           [
            [
             [
              [
               [
                [
                 [
                  [
                   [
                    [
                     [
                      [
                       [
                        [
                         [
                          [
                           [
                            [
                             [
                              [
                               [
                                [
                                 [
                                  [
                                   1
                                  ]
                                 ]
                                ]
                               ]
                              ]
                             ]
                            ]
                           ]
                          ]
                         ]
                        ]
                       ]
                      ]
                     ]
                    ]
                   ]
                  ]
                 ]
                ]
               ]
              ]
             ]
            ]
           ]
          ]
         ]
        ]
       ]
      ]
     ]
    ]
   ],
   "canonical": "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[1]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]",
   "canonical_hex": "5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b5b315d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d5d"
  }
 ],
 "invalid": [
  {
   "name": "float",
   "object": {
    "amount": 1.5
   },
   "error": "floating point is not allowed"
  },
  {
   "name": "null",
   "object": {
    "note": null
   },
   "error": "null is not allowed; omit the field"
  },
  {
   "name": "integer over 2^53-1",
   "object": {
    "n": 9007199254740992
   },
   "error": "integer outside ±(2^53 − 1)"
  },
  {
   "name": "33 levels of nesting",
   "object": [
    [
     [
      [
       [
        [
         [
          [
           [
            [
             [
              [
               [
                [
                 [
                  [
                   [
                    [
                     [
                      [
                       [
                        [
                         [
                          [
                           [
                            [
                             [
                              [
                               [
                                [
                                 [
                                  [
                                   []
                                  ]
                                 ]
                                ]
                               ]
                              ]
                             ]
                            ]
                           ]
                          ]
                         ]
                        ]
                       ]
                      ]
                     ]
                    ]
                   ]
                  ]
                 ]
                ]
               ]
              ]
             ]
            ]
           ]
          ]
         ]
        ]
       ]
      ]
     ]
    ]
   ],
   "error": "JSON nested deeper than 32 levels"
  },
  {
   "name": "noncharacter in a string",
   "object": {
    "s": "￿"
   },
   "error": "I-JSON string contains a surrogate or noncharacter"
  }
 ],
 "invalid_text": [
  {
   "name": "fraction that names an integer",
   "text": "{\"v\":1.0}",
   "error": "floating point is not allowed"
  },
  {
   "name": "exponent that names an integer",
   "text": "[1e2]",
   "error": "floating point is not allowed"
  },
  {
   "name": "fraction that rounds to a safe integer",
   "text": "[9007199254740991.4]",
   "error": "floating point is not allowed"
  },
  {
   "name": "33 levels of nesting",
   "text": "[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]",
   "error": "JSON nested deeper than 32 levels"
  }
 ]
}
