Cbor Query program. Also contains json-to-cbor application.
src | ||
tests | ||
.gitignore | ||
README.md | ||
shard.yml |
cq usage
cq < file.cbor
cq [attribute] < file.cbor
Example:
cq ".people.alice.age" < file.cbor
json-to-cbor usage
json-to-cbor < file.json > file.cbor
hs usage
hs
stands for hexstring
.
hs < file.cbor
string-keys-to-int usage
JSON format has a limitation on the type of hash keys: it has to be a string.
CBOR doesn't come with such limitation.
string-keys-to-int
automatically converts string keys into integers, whenever all the keys in a hash can be converted.
string-keys-to-int < file.cbor