mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 12:05:50 +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:
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"
|
||||
}
|
||||
Reference in New Issue
Block a user