Uses of Class
oracle.nosql.driver.values.JsonOptions
Package
Description
Contains the public API for using the Oracle NoSQL Database
as well as configuration and common parameter classes used in
database operations.
Contains the input and response classes used for Oracle NoSQL
Database operations.
The classes in this package are used to represent and manipulate data in the
Oracle NoSQL Database.
-
Uses of JsonOptions in oracle.nosql.driver
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionDeleteRequest.setKeyFromJson
(String jsonValue, JsonOptions options) Sets the key to use for the delete operation based on a JSON string.GetRequest.setKeyFromJson
(String jsonValue, JsonOptions options) Sets the key to use for the get operation based on a JSON string.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
Modifier and TypeFieldDescriptionstatic final JsonOptions
JsonOptions.PRETTY
StaticJsonOptions
instance with default values for all but the pretty-print option, which is set to true.Modifier and TypeMethodDescriptionJsonOptions.setAllowComments
(boolean value) Tells the system to allow C/Java style comments embedded in JSON of the format \/* comment *\/ on input.JsonOptions.setAllowNonNumericNumbers
(boolean value) Tells the system to allow non-numeric values as numbers, such as NaN, on JSON input.JsonOptions.setAllowSingleQuotes
(boolean value) Tells the system to allow single quotes instead of double quotes in JSON on input.JsonOptions.setMaintainInsertionOrder
(boolean value) Tells the system to use a Map that maintains insertion order when parsing JSON.JsonOptions.setNumericAsNumber
(boolean value) Tells the JSON parser on input to represent all numeric values asNumberValue
.JsonOptions.setPrettyPrint
(boolean value) Tells the system to pretty print JSON on output.JsonOptions.setTimestampAsLong
(boolean value) Tells the system to representTimestampValue
instances in a long representation when exported as JSON.JsonOptions.setTimestampAsString
(boolean value) Tells the system to representTimestampValue
instances in a string representation when exported as JSON.Modifier and TypeMethodDescriptionstatic 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) Creates NSON in the output stream from JSON in the input streamstatic void
JsonUtils.createNsonFromJson
(oracle.nosql.driver.util.ByteOutputStream bos, Reader jsonInput, JsonOptions options) Creates NSON in the output stream from JSON in the Readerstatic void
JsonUtils.createNsonFromJson
(oracle.nosql.driver.util.ByteOutputStream bos, String jsonInput, JsonOptions options) Creates NSON in the output stream from JSON in the input stringstatic FieldValue
JsonUtils.createValueFromJson
(InputStream jsonInput, JsonOptions options) Creates a FieldValue instance from JSONstatic FieldValue
JsonUtils.createValueFromJson
(Reader jsonInput, JsonOptions options) Creates a FieldValue instance from JSONstatic FieldValue
JsonUtils.createValueFromJson
(String jsonInput, JsonOptions options) Creates a FieldValue instance from JSONstatic String
JsonUtils.fromNson
(oracle.nosql.driver.util.ByteInputStream bis, JsonOptions options) Returns JSON from NSONstatic void
JsonUtils.generateEventsFromJson
(oracle.nosql.driver.values.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) Compares 2 JSON strings for equality.MapValue.putFromJson
(String name, String jsonString, JsonOptions options) Sets the named field based on the JSON string provided.BinaryValue.toJson
(JsonOptions options) Returns a quoted string of the value as Base64.DoubleValue.toJson
(JsonOptions options) EmptyValue.toJson
(JsonOptions options) FieldValue.toJson
(JsonOptions options) Returns a JSON representation of the value using the options, if specified.IntegerValue.toJson
(JsonOptions options) JsonNullValue.toJson
(JsonOptions options) LongValue.toJson
(JsonOptions options) NullValue.toJson
(JsonOptions options) NumberValue.toJson
(JsonOptions options) StringValue.toJson
(JsonOptions options) TimestampValue.toJson
(JsonOptions options) Returns the JSON value of the instance.ModifierConstructorDescriptionJsonPrettySerializer
(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
(Reader input, JsonOptions options) Creates an iterator over JSON objects provided by the Reader.JsonReader
(String jsonString, JsonOptions options) Creates an iterator over JSON objects in a string.JsonSerializer
(JsonOptions options) Creates a new JsonSerializer.