如何将 Flatbuffer 数据文件转换为 json?

how to convert Flatbuffer data file to json?

我使用 flatbuffer 将数据编码到名为 'person.txt' 的文件中,如何将其转换为 json 文件?

我尝试 'flatc --json person.txt person.json' 但失败了。

我有'person.fbs, person.txt',怎么办?

您还需要在执行的命令中提供架构路径。

flatc.exe --raw-binary -t <path to fbs schema file> -- <path to flatbuffer binary file>