Package org.webpki.cbor
Class CBORFromJSON
java.lang.Object
org.webpki.cbor.CBORFromJSON
Class for converting JSON to CBOR.
Note that the JSON Number
type is (in this implementation),
restricted to integers with a magnitude <= 2^53
.
-
Method Summary
-
Method Details
-
convert
Convert JSON to CBOR.Decoding errors throw
CBORException
.- Parameters:
json
- JSON String- Returns:
- CBORObject
-