bnclabs / gson

Algorithms on data formats - JSON, CBOR, Collation.
http://prataprc.github.io/jsonsort.io
MIT License
19 stars 8 forks source link

CBOR: Test cases for cbor_json.go:tag2json() #5

Open prataprc opened 7 years ago

prataprc commented 7 years ago

As of now, Gson supports following CBOR tagged data types:

tagDateTime, tagEpoch, tagPosBignum, tagNegBignum, tagDecimalFraction, tagBigFloat, tagCborEnc, tagRegexp, tagCborPrefix

I don't think JSON supports any of them in its present form. If we can find some innovative way to still represent these tagged data types within the limited set of JSON types, we can explore further.