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:
Thiébaud Weksteen
2026-02-04 23:51:49 +11:00
committed by GitHub
parent 3211f857d1
commit b84b676c89

View File

@@ -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