mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-23 09:30:01 +00:00
Fixed vector of union JSON parsing.
This for some reason never had a test case, and was broken. Change-Id: If832f5eb8b6c5ba8a75257464892634b38719c55
This commit is contained in:
26
tests/union_vector/union_vector.json
Normal file
26
tests/union_vector/union_vector.json
Normal file
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"main_character_type": "Rapunzel",
|
||||
"main_character": {
|
||||
"hair_length": 6
|
||||
},
|
||||
"characters_type": [
|
||||
"Belle",
|
||||
"MuLan",
|
||||
"BookFan",
|
||||
"Other",
|
||||
"Unused"
|
||||
],
|
||||
"characters": [
|
||||
{
|
||||
"books_read": 7
|
||||
},
|
||||
{
|
||||
"sword_attack_damage": 5
|
||||
},
|
||||
{
|
||||
"books_read": 2
|
||||
},
|
||||
"Other",
|
||||
"Unused"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user