Reputation: 232
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
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