Skip to content

Latest commit

 

History

History
43 lines (32 loc) · 911 Bytes

File metadata and controls

43 lines (32 loc) · 911 Bytes

Decode

jsonschema decode <output.binpack> <output.json|.jsonl>
  [--verbose/-v] [--debug/-g]
  [--default-dialect/-d <uri>] [--json/-j]

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