Package com.dslplatform.json
-
Interface Summary Interface Description Configuration Configuration API for setting up readers/writers during library initialization.DslJson.ConverterFactory<T> DslJson.Fallback<TContext> JsonObject Objects which implement this interface are supported for serialization in DslJson.JsonReader.BindObject<T> Existing instances can be provided as target for deserialization.JsonReader.ReadJsonObject<T extends JsonObject> JsonReader.ReadObject<T> Custom objects can be deserialized based on the implementation specified through this interface.JsonWriter.WriteObject<T> Custom objects can be serialized based on the implementation specified through this interface.ResultSetConverter.Writer StringCache TypeLookup UnknownSerializer -
Class Summary Class Description Base64 A very fast and memory efficient class to encode and decode to and from BASE64 in full accordance with RFC 2045.
On Windows XP sp1 with 1.4.2_04 and later ;), this encoder and decoder is about 10 times faster on small arrays (10 - 1000 bytes) and 2-3 times as fast on larger arrays (10000 - 1000000 bytes) compared tosun.misc.Encoder()/Decoder().
On byte arrays the encoder is about 20% faster than Jakarta Commons Base64 Codec for encode and about 50% faster for decoding large arrays.BinaryConverter BoolConverter DslJson<TContext> Main DSL-JSON class.DslJson.RereadStream DslJson.Settings<TContext> Configuration for DslJson options.DslJson.SimpleStringCache Simplistic string cache implementation.ExternalConverterAnalyzer Grisu3 Grisu3.CachedPowers Grisu3.CachedPowers.CachedPower Grisu3.DiyFp Grisu3.DoubleHelper Grisu3.FastDtoa Grisu3.FastDtoaBuilder JavaGeomConverter JavaTimeConverter JsonReader<TContext> Object for processing JSON from byte[] and InputStream.JsonReader.WithObjectReader<T extends JsonObject> JsonReader.WithReader<T> JsonWriter DslJson writes JSON into JsonWriter which has two primary modes of operation: * targeting specific output stream * buffering the entire response in memory In both cases JsonWriter writes into an byte[] buffer.MapConverter NetConverter NumberConverter NumberConverter.NumberInfo ObjectConverter PrettifyOutputStream ResultSetConverter StringConverter UUIDConverter XmlConverter -
Enum Summary Enum Description CompiledJson.Behavior Defines behavior for handling unknown properties.CompiledJson.Format JSON object format.CompiledJson.ObjectFormatPolicy Class level tuning for object format serialization behavior.CompiledJson.TypeSignature Some types (abstract classes and interfaces) require additional metadata so they can be correctly deserialized.JsonAttribute.IncludePolicy Customize property serialization behavior in minimal serialization object format.JsonReader.DoublePrecision JsonReader.ErrorInfo JsonReader.UnknownNumberParsing PrettifyOutputStream.IndentType -
Exception Summary Exception Description ConfigurationException DSL-JSON specific exception thrown when DSL-JSON was not configured for types which are attempted to be serialized.JsonReader.EmptyEOFException ParsingException DSL-JSON specific exception thrown when DSL-JSON is unable to parse provided JSON.ParsingException.ParsingStacklessException SerializationException -
Annotation Types Summary Annotation Type Description CompiledJson Compile time data-binding annotation.JsonAttribute Compile time property configuration.JsonConverter JSON converter can be specified for class.JsonValue Specify json value source used for serialization/deserialization.NonNull A common DslJson annotation to declare that annotated elements cannot benull.NonNullApi A common DslJson annotation to declare that parameters and return values are to be considered as non-nullable by default for a given package.Nullable A common DslJson annotation to declare that annotated elements can benullunder some circumstance.