table Word {
frequency:long;
ipa:string;
translation:[string];
}
table Dictionary {
keys:[string];
values:[Word];
}
root_type Dictionary;
{
"keys": ["downbeat"],
"values": [
{
"frequency": 236548,
"translation": [
"n. 下拍(乐队指挥向下的手势);停滞",
"adj. 忧郁的;悲观的;不强烈的"
],
"ipa": "daʊnˈbit"
}
]
}
cd flatbuffers/samples && ../Debug/flatc --js dictionary.fbs --binary dictionary.json
deserialize binary file and get the dictionary data :samplebinary2.js