mirror of
https://github.com/vee1e/flatbuffers.git
synced 2026-09-01 17:57:25 +00:00
Annotated Flatbuffer Binary (#7174)
* Annotated Flatbuffer Binary * Various fixes * Handles old schema * handle multiple missing fields * minor edits * bazel fix, spelling fix, ascii fix
This commit is contained in:
parent
0bceba24db
commit
d3aeee32bb
18 changed files with 2520 additions and 7 deletions
124
tests/annotated_binary/annotated_binary.json
Normal file
124
tests/annotated_binary/annotated_binary.json
Normal file
|
|
@ -0,0 +1,124 @@
|
|||
{
|
||||
"counter": 1234,
|
||||
"healthy": true,
|
||||
"meal": "Banana",
|
||||
"bar": {
|
||||
"a": 123456.789,
|
||||
"b": 987654.321,
|
||||
"c": {
|
||||
"meal": "Apple"
|
||||
}
|
||||
},
|
||||
"home": {
|
||||
"floors": 1,
|
||||
"doors": 2,
|
||||
"windows": 12,
|
||||
"dimensions": {
|
||||
"values": [
|
||||
10,
|
||||
12,
|
||||
20
|
||||
],
|
||||
"tolerances": [
|
||||
{
|
||||
"width": 1
|
||||
},
|
||||
{
|
||||
"width": 2
|
||||
},
|
||||
{
|
||||
"width": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "This is a long string to show how it breaks up.",
|
||||
"bars": [
|
||||
{
|
||||
"a": 123,
|
||||
"b": 456,
|
||||
"c": {
|
||||
"meal": "Apple"
|
||||
}
|
||||
},
|
||||
{
|
||||
"a": 987,
|
||||
"b": 654,
|
||||
"c": {
|
||||
"meal": "Kiwi"
|
||||
}
|
||||
}
|
||||
],
|
||||
"bar_baz_type": "Baz",
|
||||
"bar_baz": {
|
||||
"meal": "Kiwi"
|
||||
},
|
||||
"accounts": [
|
||||
9,
|
||||
8,
|
||||
7,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
6,
|
||||
5,
|
||||
4,
|
||||
],
|
||||
// Use the same string to show shared string support
|
||||
"bob": "charlie",
|
||||
"alice": "charlie",
|
||||
"just_i32": 13,
|
||||
"names": [
|
||||
"alice",
|
||||
"bob",
|
||||
"charlie"
|
||||
],
|
||||
"points_of_interest": [
|
||||
{
|
||||
"latitude": 43.275,
|
||||
"longitude": -78.114990
|
||||
},
|
||||
{
|
||||
"latitude": 37.422001,
|
||||
"longitude": -122.084061
|
||||
},
|
||||
{
|
||||
"latitude": -54.420792,
|
||||
"longitude": 3.346450
|
||||
}
|
||||
],
|
||||
"foobars_type": [
|
||||
"Bar",
|
||||
"Baz",
|
||||
"Bar"
|
||||
],
|
||||
"foobars" : [
|
||||
{
|
||||
"a": 123,
|
||||
"b": 456,
|
||||
"c": {
|
||||
"meal": "Apple"
|
||||
}
|
||||
},
|
||||
{
|
||||
"meal": "Banana"
|
||||
},
|
||||
{
|
||||
"a": 987,
|
||||
"b": 654,
|
||||
"c": {
|
||||
"meal": "Kiwi"
|
||||
}
|
||||
}
|
||||
],
|
||||
"measurement_type": "Tolerance",
|
||||
"measurement": {
|
||||
"width": 5
|
||||
},
|
||||
"anything_type": "Bar",
|
||||
"anything": {
|
||||
"a": 321,
|
||||
"b": 654
|
||||
},
|
||||
"charlie": "alice"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue