Files
flatbuffers/tests/monsterdata_test.json
Wouter van Oortmerssen 7b8053570e Enums in C++ are now strongly typed.
Accessors and constructors now take enum types rather than ints.

Bug: 16570507
Change-Id: I4b50fd64ad2e662ea2481bc0ccea784326fb31c0
Tested: on Linux and Windows.
2014-09-23 17:25:50 -07:00

41 lines
404 B
JSON
Executable File

{
pos: {
x: 1,
y: 2,
z: 3,
test1: 3,
test2: Green,
test3: {
a: 5,
b: 6
}
},
hp: 80,
name: "MyMonster",
inventory: [
0,
1,
2,
3,
4
],
test_type: Monster,
test: {
name: "Fred"
},
test4: [
{
a: 10,
b: 20
},
{
a: 30,
b: 40
}
],
testarrayofstring: [
"test1",
"test2"
]
}