Class CBORFromJSON

java.lang.Object
org.webpki.cbor.CBORFromJSON

public class CBORFromJSON extends Object
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 Details

    • convert

      public static CBORObject convert(String json)
      Convert JSON to CBOR.

      Decoding errors throw CBORException.

      Parameters:
      json - JSON String
      Returns:
      CBORObject