mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
Fix example of JSON export with flatc (#8892)
Binary files should be placed after "--". Also add a note about missing file_identifier and --raw-binary.
This commit is contained in:
committed by
GitHub
parent
3211f857d1
commit
b84b676c89
@@ -79,11 +79,12 @@ list of `FILES...`.
|
||||
`myschema.fbs` to JSON:
|
||||
|
||||
```sh
|
||||
flatc --json myschema.fbs mydata.bin
|
||||
flatc --json myschema.fbs -- mydata.bin
|
||||
```
|
||||
|
||||
This will generate a `mydata.json` file.
|
||||
|
||||
This will generate a `mydata.json` file. If there is no
|
||||
[`file_identifier`](schema.md/#file-identification-and-extension) defined
|
||||
for this schema, you will need to use the `--raw-binary` option.
|
||||
|
||||
### Additional options
|
||||
|
||||
|
||||
Reference in New Issue
Block a user