capnproto

FORK: Cap'n Proto serialization/RPC system - core tools and C++ library
git clone https://git.neptards.moe/neptards/capnproto.git
Log | Files | Refs | README | LICENSE

pretty.json (5094B)


      1 { "voidField": null,
      2   "boolField": true,
      3   "int8Field": -123,
      4   "int16Field": -12345,
      5   "int32Field": -12345678,
      6   "int64Field": "-123456789012345",
      7   "uInt8Field": 234,
      8   "uInt16Field": 45678,
      9   "uInt32Field": 3456789012,
     10   "uInt64Field": "12345678901234567890",
     11   "float32Field": 1234.5,
     12   "float64Field": -1.23e47,
     13   "textField": "foo",
     14   "dataField": [98, 97, 114],
     15   "structField": {
     16     "voidField": null,
     17     "boolField": true,
     18     "int8Field": -12,
     19     "int16Field": 3456,
     20     "int32Field": -78901234,
     21     "int64Field": "56789012345678",
     22     "uInt8Field": 90,
     23     "uInt16Field": 1234,
     24     "uInt32Field": 56789012,
     25     "uInt64Field": "345678901234567890",
     26     "float32Field": -1.2499999646475857e-10,
     27     "float64Field": 345,
     28     "textField": "baz",
     29     "dataField": [113, 117, 120],
     30     "structField": {
     31       "voidField": null,
     32       "boolField": false,
     33       "int8Field": 0,
     34       "int16Field": 0,
     35       "int32Field": 0,
     36       "int64Field": "0",
     37       "uInt8Field": 0,
     38       "uInt16Field": 0,
     39       "uInt32Field": 0,
     40       "uInt64Field": "0",
     41       "float32Field": 0,
     42       "float64Field": 0,
     43       "textField": "nested",
     44       "structField": {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "really nested", "enumField": "foo", "interfaceField": null},
     45       "enumField": "foo",
     46       "interfaceField": null },
     47     "enumField": "baz",
     48     "interfaceField": null,
     49     "voidList": [null, null, null],
     50     "boolList": [false, true, false, true, true],
     51     "int8List": [12, -34, -128, 127],
     52     "int16List": [1234, -5678, -32768, 32767],
     53     "int32List": [12345678, -90123456, -2147483648, 2147483647],
     54     "int64List": ["123456789012345", "-678901234567890", "-9223372036854775808", "9223372036854775807"],
     55     "uInt8List": [12, 34, 0, 255],
     56     "uInt16List": [1234, 5678, 0, 65535],
     57     "uInt32List": [12345678, 90123456, 0, 4294967295],
     58     "uInt64List": ["123456789012345", "678901234567890", "0", "18446744073709551615"],
     59     "float32List": [0, 1234567, 9.9999999338158125e36, -9.9999999338158125e36, 9.99999991097579e-38, -9.99999991097579e-38],
     60     "float64List": [0, 123456789012345, 1e306, -1e306, 1e-306, -1e-306],
     61     "textList": ["quux", "corge", "grault"],
     62     "dataList": [[103, 97, 114, 112, 108, 121], [119, 97, 108, 100, 111], [102, 114, 101, 100]],
     63     "structList": [
     64       {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "x structlist 1", "enumField": "foo", "interfaceField": null},
     65       {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "x structlist 2", "enumField": "foo", "interfaceField": null},
     66       {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "x structlist 3", "enumField": "foo", "interfaceField": null} ],
     67     "enumList": ["qux", "bar", "grault"] },
     68   "enumField": "corge",
     69   "interfaceField": null,
     70   "voidList": [null, null, null, null, null, null],
     71   "boolList": [true, false, false, true],
     72   "int8List": [111, -111],
     73   "int16List": [11111, -11111],
     74   "int32List": [111111111, -111111111],
     75   "int64List": ["1111111111111111111", "-1111111111111111111"],
     76   "uInt8List": [111, 222],
     77   "uInt16List": [33333, 44444],
     78   "uInt32List": [3333333333],
     79   "uInt64List": ["11111111111111111111"],
     80   "float32List": [5555.5, "Infinity", "-Infinity", "NaN"],
     81   "float64List": [7777.75, "Infinity", "-Infinity", "NaN"],
     82   "textList": ["plugh", "xyzzy", "thud"],
     83   "dataList": [[111, 111, 112, 115], [101, 120, 104, 97, 117, 115, 116, 101, 100], [114, 102, 99, 51, 48, 57, 50]],
     84   "structList": [
     85     {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "structlist 1", "enumField": "foo", "interfaceField": null},
     86     {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "structlist 2", "enumField": "foo", "interfaceField": null},
     87     {"voidField": null, "boolField": false, "int8Field": 0, "int16Field": 0, "int32Field": 0, "int64Field": "0", "uInt8Field": 0, "uInt16Field": 0, "uInt32Field": 0, "uInt64Field": "0", "float32Field": 0, "float64Field": 0, "textField": "structlist 3", "enumField": "foo", "interfaceField": null} ],
     88   "enumList": ["foo", "garply"] }