mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-01 08:01:39 +00:00
fix invalid json format.
* string must be written with double quotes. * remove commma after the last object member.
This commit is contained in:
@@ -1,78 +1,78 @@
|
|||||||
{
|
{
|
||||||
pos: {
|
"pos": {
|
||||||
x: 1,
|
"x": 1,
|
||||||
y: "2",
|
"y": "2",
|
||||||
z: 3,
|
"z": 3,
|
||||||
test1: 3,
|
"test1": 3,
|
||||||
test2: Green,
|
"test2": "Green",
|
||||||
test3: {
|
"test3": {
|
||||||
a: 5,
|
"a": 5,
|
||||||
b: 6
|
"b": 6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
hp: 80,
|
"hp": 80,
|
||||||
name: "MyMonster",
|
"name": "MyMonster",
|
||||||
inventory: [
|
"inventory": [
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
2,
|
2,
|
||||||
3,
|
3,
|
||||||
4
|
4
|
||||||
],
|
],
|
||||||
vector_of_longs: [
|
"vector_of_longs": [
|
||||||
1,
|
1,
|
||||||
100,
|
100,
|
||||||
10000,
|
10000,
|
||||||
1000000,
|
1000000,
|
||||||
100000000
|
100000000
|
||||||
],
|
],
|
||||||
vector_of_doubles: [
|
"vector_of_doubles": [
|
||||||
-1.7976931348623157e+308,
|
-1.7976931348623157e+308,
|
||||||
0,
|
0,
|
||||||
1.7976931348623157e+308
|
1.7976931348623157e+308
|
||||||
],
|
],
|
||||||
test_type: Monster,
|
"test_type": "Monster",
|
||||||
test: {
|
"test": {
|
||||||
name: "Fred",
|
"name": "Fred",
|
||||||
pos: null
|
"pos": null
|
||||||
},
|
},
|
||||||
test4: [
|
"test4": [
|
||||||
{
|
{
|
||||||
a: 10,
|
"a": 10,
|
||||||
b: 20
|
"b": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
b: "40",
|
"b": "40",
|
||||||
a: 30
|
"a": 30
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
test5: [
|
"test5": [
|
||||||
{
|
{
|
||||||
a: 10,
|
"a": 10,
|
||||||
b: 20
|
"b": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
b: "40",
|
"b": "40",
|
||||||
a: 30
|
"a": 30
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
testarrayofstring: [
|
"testarrayofstring": [
|
||||||
"test1",
|
"test1",
|
||||||
"test2"
|
"test2"
|
||||||
],
|
],
|
||||||
enemy: {
|
"enemy": {
|
||||||
name: "Fred"
|
"name": "Fred"
|
||||||
},
|
},
|
||||||
testarrayofbools:[
|
"testarrayofbools":[
|
||||||
true, false, true
|
true, false, true
|
||||||
],
|
],
|
||||||
testbool: true,
|
"testbool": true,
|
||||||
testhashs32_fnv1: "This string is being hashed!",
|
"testhashs32_fnv1": "This string is being hashed!",
|
||||||
testhashu32_fnv1: "This string is being hashed!",
|
"testhashu32_fnv1": "This string is being hashed!",
|
||||||
testhashs64_fnv1: "This string is being hashed!",
|
"testhashs64_fnv1": "This string is being hashed!",
|
||||||
testhashu64_fnv1: "This string is being hashed!",
|
"testhashu64_fnv1": "This string is being hashed!",
|
||||||
testhashs32_fnv1a: "This string is being hashed!",
|
"testhashs32_fnv1a": "This string is being hashed!",
|
||||||
testhashu32_fnv1a: "This string is being hashed!",
|
"testhashu32_fnv1a": "This string is being hashed!",
|
||||||
testhashs64_fnv1a: "This string is being hashed!",
|
"testhashs64_fnv1a": "This string is being hashed!",
|
||||||
testhashu64_fnv1a: "This string is being hashed!",
|
"testhashu64_fnv1a": "This string is being hashed!"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user