Package org.apache.juneau.marshall.collections
package org.apache.juneau.marshall.collections
Collections classes.
Type hierarchy:
MarshalledMap/MarshalledList— neutral, marshaller-agnostic base classes carrying typed accessors, fluent setters, bean integration, andPathTraversal-based path navigation. Their defaultObject.toString()is the inheritedLinkedHashMap/LinkedListform.JsonMap/JsonList— strict-JSON-flavored subclasses. TheirtoString()renders as strict RFC 8259 JSON viaJson.of(Object), and their(CharSequence)/(Reader)constructors andofString(...)factories default toJsonParser.DEFAULT.Json5Map/Json5List(inorg.apache.juneau.marshall.json5) — JSON5-flavored siblings ofJsonMap/JsonList. TheirtoString()renders as JSON5 viaJson5.of(Object), and their(CharSequence)/(Reader)constructors andofString(...)factories default toJson5Parser.DEFAULT. These are the drop-in replacement for callers that previously relied onJsonMap.toString()producing JSON5 or onnew JsonMap("{unquoted:'json5'}")parsing JSON5.ResolvingMarshalledMap— aMarshalledMapsubclass that resolves SVL variables on every value lookup. Renamed fromResolvingJsonMapand re-parented fromJsonMapin 10.0 since SVL resolution is language-agnostic.
Per-marshaller flavored XMap / XList pairs (e.g. XmlMap, YamlMap,
UonMap) for the remaining languages are planned as a follow-on and are not delivered in 10.0;
parser sessions other than JsonParserSession and
Json5ParserSession currently produce the neutral
MarshalledMap / MarshalledList
when parsing into unbound Object / Map<String,Object> / Collection<Object>
targets.
-
ClassesClassDescriptionJava implementation of a JSON array.Java implementation of a JSON object.An RFC 6901 JSON Pointer that addresses a single value within a
Map/Listtree (such as theMarshalledMap/MarshalledListfamily).Neutral, marshaller-agnostic list of objects.Neutral, marshaller-agnostic map of string-to-object entries.Typed tree façade over the generic-collections model (MarshalledMap/MarshalledListand theirJsonMap/JsonListsubclasses).Subclass of aMarshalledMapthat automatically resolves any SVL variables in values.