Package com.upokecenter.cbor
Class JSONOptions
- java.lang.Object
-
- com.upokecenter.cbor.JSONOptions
-
public final class JSONOptions extends Object
Includes options to control how CBOR objects are converted to JSON.
-
-
Field Summary
Fields Modifier and Type Field Description static JSONOptions
Default
The default options for converting CBOR objects to JSON.
-
Constructor Summary
Constructors Constructor Description JSONOptions()
Initializes a new instance of theJSONOptions
class with default options.JSONOptions(boolean base64Padding)
Initializes a new instance of theJSONOptions
class with the given values for the options.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBase64Padding()
Gets a value indicating whether padding is written out when writing base64url or traditional base64 to JSON.
-
-
-
Field Detail
-
Default
public static final JSONOptions Default
The default options for converting CBOR objects to JSON.
-
-
Constructor Detail
-
JSONOptions
public JSONOptions()
Initializes a new instance of theJSONOptions
class with default options.
-
JSONOptions
public JSONOptions(boolean base64Padding)
Initializes a new instance of theJSONOptions
class with the given values for the options.- Parameters:
base64Padding
- Whether padding is included when writing data in base64url or traditional base64 format to JSON.
-
-