Cbor Query program. Also contains json-to-cbor application.
Go to file
2020-11-30 04:55:15 +01:00
src string-keys-to-int: converting string keys into integers. 2020-11-30 04:55:15 +01:00
tests initial commit: cq, json-to-cbor, benchmark json vs cbor 2020-11-13 19:09:22 +01:00
.gitignore initial commit: cq, json-to-cbor, benchmark json vs cbor 2020-11-13 19:09:22 +01:00
README.md string-keys-to-int: converting string keys into integers. 2020-11-30 04:55:15 +01:00
shard.yml string-keys-to-int: converting string keys into integers. 2020-11-30 04:55:15 +01:00

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