NeoLiu
NeoLiu

Reputation: 232

how to convert Flatbuffer data file to json?

I used flatbuffer to encode data into a file named 'person.txt', how can I convert it into a json file ?

I trying 'flatc --json person.txt person.json' but it failed.

I have 'person.fbs, person.txt', How to do it ?

Upvotes: 2

Views: 6068

Answers (1)

Shivendra Agarwal
Shivendra Agarwal

Reputation: 688

you need to provide path of schema too in the command you are executing.

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

Upvotes: 9

Related Questions