Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 838 Bytes

decode.markdown

File metadata and controls

41 lines (30 loc) · 838 Bytes

Decode

jsonschema decode <output.binpack> <output.json|.jsonl>

This command decodes a JSON document using JSON BinPack schema-less mode. Note this command is considered experimental and might not decode binary files produced by other versions of this CLI.

Examples

For example, consider the following encoded file:

$ xxd output.binpack
00000000: 1308 7665 7273 696f 6e37 02              ..version7.

Decoding this file using JSON BinPack will result in the following document:

{
  "version": 2.0
}

Decode a binary file into a JSON document

jsonschema decode path/to/output.binpack path/to/my/output.json

Decode a binary file into a JSONL dataset

jsonschema decode path/to/output.binpack path/to/my/dataset.jsonl