A D E G J O P S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- asCollection(Collection<T>) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes every element of the JsonArray is castable to T before adding it to a collection of Ts.
D
- DeserializationException - Exception in org.apache.camel.util.json
-
DeserializationException explains how and where the problem occurs in the source JSON text during deserialization.
- DeserializationException(int, DeserializationException.Problems, Object) - Constructor for exception org.apache.camel.util.json.DeserializationException
- deserialize(Reader) - Static method in class org.apache.camel.util.json.Jsoner
-
Deserializes a readable stream according to the RFC 4627 JSON specification.
- deserialize(String) - Static method in class org.apache.camel.util.json.Jsoner
-
A convenience method that assumes a StringReader to deserialize a string.
- deserialize(String, JsonArray) - Static method in class org.apache.camel.util.json.Jsoner
-
A convenience method that assumes a JsonArray must be deserialized.
- deserialize(String, JsonObject) - Static method in class org.apache.camel.util.json.Jsoner
-
A convenience method that assumes a JsonObject must be deserialized.
- deserializeMany(Reader) - Static method in class org.apache.camel.util.json.Jsoner
-
A convenience method that assumes multiple RFC 4627 JSON values (except numbers) have been concatenated together for deserilization which will be collectively returned in a JsonArray wrapper.
E
- escape(String) - Static method in class org.apache.camel.util.json.Jsoner
-
Escapes potentially confusing or important characters in the String provided.
G
- getBigDecimal(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a BigDecimal, Number, or String at the given index.
- getBigDecimal(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a BigDecimal, Number, or String at the given key.
- getBigDecimalOrDefault(String, BigDecimal) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a BigDecimal, Number, or String at the given key.
- getBoolean(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Boolean or String value at the given index.
- getBoolean(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Boolean or String value at the given key.
- getBooleanOrDefault(String, boolean) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Boolean or String value at the given key.
- getByte(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Number or String value at the given index.
- getByte(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getByteOrDefault(String, byte) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getCollection(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Collection value at the given index.
- getCollection(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Collection at the given key.
- getCollectionOrDefault(String, T) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Collection at the given key.
- getDouble(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Number or String value at the given index.
- getDouble(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getDoubleOrDefault(String, double) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getEnum(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a String value at the given index representing a fully qualified name in dot notation of an enum.
- getEnum(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a String value at the given key representing a fully qualified name in dot notation of an enum.
- getEnumOrDefault(String, T) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a String value at the given key representing a fully qualified name in dot notation of an enum.
- getFloat(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Number or String value at the given index.
- getFloat(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getFloatOrDefault(String, float) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getInteger(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Number or String value at the given index.
- getInteger(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getIntegerOrDefault(String, int) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getLong(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Number or String value at the given index.
- getLong(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getLongOrDefault(String, long) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getMap(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Map value at the given index.
- getMap(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Map at the given key.
- getMapOrDefault(String, T) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Map at the given key.
- getMessage() - Method in exception org.apache.camel.util.json.DeserializationException
- getPosition() - Method in exception org.apache.camel.util.json.DeserializationException
- getProblemType() - Method in exception org.apache.camel.util.json.DeserializationException
- getShort(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Number or String value at the given index.
- getShort(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getShortOrDefault(String, short) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Number or String value at the given key.
- getString(int) - Method in class org.apache.camel.util.json.JsonArray
-
A convenience method that assumes there is a Boolean, Number, or String value at the given index.
- getString(String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Boolean, Number, or String value at the given key.
- getStringOrDefault(String, String) - Method in class org.apache.camel.util.json.JsonObject
-
A convenience method that assumes there is a Boolean, Number, or String value at the given key.
- getUnexpectedObject() - Method in exception org.apache.camel.util.json.DeserializationException
J
- Jsonable - Interface in org.apache.camel.util.json
-
Jsonables can be serialized in java script object notation (JSON).
- JsonArray - Class in org.apache.camel.util.json
-
JsonArray is a common non-thread safe data format for a collection of data.
- JsonArray() - Constructor for class org.apache.camel.util.json.JsonArray
-
Instantiates an empty JsonArray.
- JsonArray(Collection<?>) - Constructor for class org.apache.camel.util.json.JsonArray
-
Instantiate a new JsonArray using ArrayList's constructor of the same type.
- Jsoner - Class in org.apache.camel.util.json
-
Jsoner provides JSON utilities for escaping strings to be JSON compatible, thread safe parsing (RFC 4627) JSON strings, and serializing data to strings in JSON format.
- JsonObject - Class in org.apache.camel.util.json
-
JsonObject is a common non-thread safe data format for string to data mappings.
- JsonObject() - Constructor for class org.apache.camel.util.json.JsonObject
-
Instantiates an empty JsonObject.
- JsonObject(Map<String, ?>) - Constructor for class org.apache.camel.util.json.JsonObject
-
Instantiate a new JsonObject by accepting a map's entries, which could lead to de/serialization issues of the resulting JsonObject since the entry values aren't validated as JSON values.
O
- org.apache.camel.util.json - package org.apache.camel.util.json
P
- prettyPrint(String) - Static method in class org.apache.camel.util.json.Jsoner
-
Formats the JSON string to be more easily human readable using tabs for indentation.
- prettyPrint(String, int) - Static method in class org.apache.camel.util.json.Jsoner
-
Formats the JSON string to be more easily human readable using an arbitrary amount of spaces for indentation.
- prettyPrint(String, int, int) - Static method in class org.apache.camel.util.json.Jsoner
S
- serialize(Object) - Static method in class org.apache.camel.util.json.Jsoner
-
A convenience method that assumes a StringWriter.
- serialize(Object, Writer) - Static method in class org.apache.camel.util.json.Jsoner
-
Serializes values according to the RFC 4627 JSON specification.
- serializeCarelessly(Object, Writer) - Static method in class org.apache.camel.util.json.Jsoner
-
Serializes like the first version of this library.
- serializeStrictly(Object, Writer) - Static method in class org.apache.camel.util.json.Jsoner
-
Serializes JSON values and only JSON values according to the RFC 4627 JSON specification.
T
- toJson() - Method in interface org.apache.camel.util.json.Jsonable
-
Serialize to a JSON formatted string.
- toJson() - Method in class org.apache.camel.util.json.JsonArray
- toJson() - Method in class org.apache.camel.util.json.JsonObject
- toJson(Writer) - Method in interface org.apache.camel.util.json.Jsonable
-
Serialize to a JSON formatted stream.
- toJson(Writer) - Method in class org.apache.camel.util.json.JsonArray
- toJson(Writer) - Method in class org.apache.camel.util.json.JsonObject
All Classes All Packages