Uses of Class
oracle.nosql.driver.values.JsonOptions
-
Packages that use JsonOptions Package Description oracle.nosql.driver Contains the public API for using the Oracle NoSQL Database as well as configuration and common parameter classes used in database operations.oracle.nosql.driver.ops Contains the input and response classes used for Oracle NoSQL Database operations.oracle.nosql.driver.values The classes in this package are used to represent and manipulate data in the Oracle NoSQL Database. -
-
Uses of JsonOptions in oracle.nosql.driver
Methods in oracle.nosql.driver with parameters of type JsonOptions Modifier and Type Method Description static String
Nson. toJsonString(byte[] nson, JsonOptions options)
Returns the JSON string of given bytes in NSON.static String
Nson. toJsonString(oracle.nosql.driver.util.ByteInputStream in, JsonOptions options)
Returns the JSON string of given input stream of NSON bytes. -
Uses of JsonOptions in oracle.nosql.driver.ops
Methods in oracle.nosql.driver.ops with parameters of type JsonOptions Modifier and Type Method Description DeleteRequest
DeleteRequest. setKeyFromJson(String jsonValue, JsonOptions options)
Sets the key to use for the delete operation based on a JSON string.GetRequest
GetRequest. setKeyFromJson(String jsonValue, JsonOptions options)
Sets the key to use for the get operation based on a JSON string.PutRequest
PutRequest. setValueFromJson(String jsonValue, JsonOptions options)
Sets the value to use for the put operation based on a JSON string. -
Uses of JsonOptions in oracle.nosql.driver.values
Fields in oracle.nosql.driver.values declared as JsonOptions Modifier and Type Field Description static JsonOptions
JsonOptions. PRETTY
StaticJsonOptions
instance with default values for all but the pretty-print option, which is set to true.Methods in oracle.nosql.driver.values that return JsonOptions Modifier and Type Method Description JsonOptions
JsonOptions. setAllowComments(boolean value)
Tells the system to allow C/Java style comments embedded in JSON of the format \/* comment *\/ on input.JsonOptions
JsonOptions. setAllowNonNumericNumbers(boolean value)
Tells the system to allow non-numeric values as numbers, such as NaN, on JSON input.JsonOptions
JsonOptions. setAllowSingleQuotes(boolean value)
Tells the system to allow single quotes instead of double quotes in JSON on input.JsonOptions
JsonOptions. setMaintainInsertionOrder(boolean value)
Tells the system to use a Map that maintains insertion order when parsing JSON.JsonOptions
JsonOptions. setNumericAsNumber(boolean value)
Tells the JSON parser on input to represent all numeric values asNumberValue
.JsonOptions
JsonOptions. setPrettyPrint(boolean value)
Tells the system to pretty print JSON on output.JsonOptions
JsonOptions. setTimestampAsLong(boolean value)
Tells the system to representTimestampValue
instances in a long representation when exported as JSON.JsonOptions
JsonOptions. setTimestampAsString(boolean value)
Tells the system to representTimestampValue
instances in a string representation when exported as JSON.Methods in oracle.nosql.driver.values with parameters of type JsonOptions Modifier and Type Method Description static FieldValue
FieldValue. createFromJson(InputStream jsonInput, JsonOptions options)
Constructs a new FieldValue instance based on JSON read from the InputStream provided.static FieldValue
FieldValue. createFromJson(Reader jsonInput, JsonOptions options)
Constructs a new FieldValue instance based on JSON read from the Reader provided.static FieldValue
FieldValue. createFromJson(String jsonInput, JsonOptions options)
Constructs a new FieldValue instance based on the JSON string provided.static void
JsonUtils. createNsonFromJson(oracle.nosql.driver.util.ByteOutputStream bos, com.fasterxml.jackson.core.JsonParser jp, boolean getNext, JsonOptions options)
Constructs NSON based on arbitrary JSON from the incoming JSON, streaming it into the providedByteOutputStream
.static void
JsonUtils. createNsonFromJson(oracle.nosql.driver.util.ByteOutputStream bos, InputStream jsonInput, JsonOptions options)
static void
JsonUtils. createNsonFromJson(oracle.nosql.driver.util.ByteOutputStream bos, Reader jsonInput, JsonOptions options)
static void
JsonUtils. createNsonFromJson(oracle.nosql.driver.util.ByteOutputStream bos, String jsonInput, JsonOptions options)
static FieldValue
JsonUtils. createValueFromJson(InputStream jsonInput, JsonOptions options)
static FieldValue
JsonUtils. createValueFromJson(Reader jsonInput, JsonOptions options)
static FieldValue
JsonUtils. createValueFromJson(String jsonInput, JsonOptions options)
static String
JsonUtils. fromNson(oracle.nosql.driver.util.ByteInputStream bis, JsonOptions options)
Returns JSON from NSONstatic void
JsonUtils. generateEventsFromJson(FieldValueEventHandler handler, com.fasterxml.jackson.core.JsonParser jp, boolean getNext, JsonOptions options)
GeneratesFieldValueEventHandler
events from JSON input.static boolean
JsonUtils. jsonEquals(String s1, String s2, JsonOptions options)
MapValue
MapValue. putFromJson(String name, String jsonString, JsonOptions options)
Sets the named field based on the JSON string provided.String
BinaryValue. toJson(JsonOptions options)
Returns a quoted string of the value as Base64.String
DoubleValue. toJson(JsonOptions options)
String
EmptyValue. toJson(JsonOptions options)
String
FieldValue. toJson(JsonOptions options)
Returns a JSON representation of the value using the options, if specified.String
IntegerValue. toJson(JsonOptions options)
String
JsonNullValue. toJson(JsonOptions options)
String
LongValue. toJson(JsonOptions options)
String
NullValue. toJson(JsonOptions options)
String
NumberValue. toJson(JsonOptions options)
String
StringValue. toJson(JsonOptions options)
String
TimestampValue. toJson(JsonOptions options)
Returns the JSON value of the instance.Constructors in oracle.nosql.driver.values with parameters of type JsonOptions Constructor Description JsonPrettySerializer(int indentation, JsonOptions options)
Creates a new JsonPrettySerializer using the object indentation provided.JsonPrettySerializer(JsonOptions options)
Creates a new JsonPrettySerializer using default indentation.JsonReader(File file, JsonOptions options)
Creates an iterator over JSON objects in the specified file.JsonReader(InputStream input, JsonOptions options)
Creates an iterator over JSON objects provided by the InputStream.JsonReader(String jsonString, JsonOptions options)
Creates an iterator over JSON objects in a string.JsonSerializer(JsonOptions options)
Creates a new JsonSerializer.
-