Index

A C D E G J L O P R S T U V Y 
All Classes and Interfaces|All Packages|Serialized Form

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.

C

COLON - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of ":"
color(Yytoken.Types, Object) - Method in interface org.apache.camel.util.json.Jsoner.ColorPrintElement
 
colorPrint(String, int, boolean, Jsoner.ColorPrintElement) - Static method in class org.apache.camel.util.json.Jsoner
 
colorPrint(String, int, Jsoner.ColorPrintElement) - Static method in class org.apache.camel.util.json.Jsoner
 
colorPrint(String, String, int, boolean, Jsoner.ColorPrintElement) - Static method in class org.apache.camel.util.json.Jsoner
 
colorPrint(String, Jsoner.ColorPrintElement) - Static method in class org.apache.camel.util.json.Jsoner
 
COMMA - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of ","

D

DATUM - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value that is a boolean, null, number, or string.
DeserializationException - Exception Class 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 class 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

END - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of ""
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 class org.apache.camel.util.json.DeserializationException
 
getPosition() - Method in exception class org.apache.camel.util.json.DeserializationException
 
getProblemType() - Method in exception class 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 class 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.
Jsoner.ColorPrintElement - Interface in org.apache.camel.util.json
 
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.

L

LEFT_BRACE - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of "{"
LEFT_SQUARE - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of "["

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
 

R

RIGHT_BRACE - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of "}"
RIGHT_SQUARE - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Tokens of this type will always have a value of "]"

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
 
toString() - Method in class org.apache.camel.util.json.Yytoken
 
trySerialize(Object) - Static method in class org.apache.camel.util.json.Jsoner
A convenience method that assumes a StringWriter.

U

unescape(String) - Static method in class org.apache.camel.util.json.Jsoner
Un-escapes a JSon string provided.

V

VALUE - Enum constant in enum class org.apache.camel.util.json.Yytoken.Types
Represent the value (not a parsing token but used during color print)
valueOf(String) - Static method in enum class org.apache.camel.util.json.Yytoken.Types
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.apache.camel.util.json.Yytoken.Types
Returns an array containing the constants of this enum class, in the order they are declared.

Y

Yytoken - Class in org.apache.camel.util.json
Represents structural entities in JSON.
Yytoken.Types - Enum Class in org.apache.camel.util.json
Represents the different kinds of tokens.
A C D E G J L O P R S T U V Y 
All Classes and Interfaces|All Packages|Serialized Form