Note that instances are fully immutable, and thereby thread-safe.
Note on source types: source to read is declared as java.
but covers following types:
InputStreamReaderbyte[]char[]String/CharSequenceURLFile| Modifier and Type | Class and Description |
|---|---|
| public static class | JSON.
Builder class that needs to be used for certain kind of "static" configuration
(settings that can not vary on per-call basis for |
| private static class | JSON.
Extension context implementation used when |
| public static enum | JSON.
Simple on/off (enabled/disabled) features for |
| Modifier and Type | Field and Description |
|---|---|
| protected final int | |
| protected final JsonFactory | _jsonFactory
Underlying JSON factory used for creating Streaming parsers and generators. |
| protected final PrettyPrinter | |
| protected final JSONReader | _reader
Blueprint instance of the reader to use for reading JSON as simple Objects. |
| protected final TreeCodec | _treeCodec
Optional handler for |
| protected final ValueReaderLocator | |
| protected final ValueWriterLocator | |
| protected final JSONWriter | _writer
Blueprint instance of the writer to use for writing JSON given simple Objects. |
| public static final int | |
| pack-priv static final int | |
| public static final JSON | std
Singleton instance with standard, default configuration. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| protected | JSON(JSON base, int features, JsonFactory jsonF, TreeCodec trees, JSONReader r, JSONWriter w, PrettyPrinter pp)
|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected <T> T | |
| protected JsonGenerator | |
| protected JsonParser | |
| protected JSONReader | |
| protected JSONWriter | |
| protected JsonParser | |
| protected void | |
| protected JsonParser | |
| protected JSONReader | |
| protected <T> T | |
| protected final JSON | |
| protected JSON | _with(int features, JsonFactory jsonF, TreeCodec trees, JSONReader reader, JSONWriter writer, PrettyPrinter pp)
|
| protected final void | |
| protected JSONWriter | |
| public Object | anyFrom(Object source)
Read method that will take given JSON Source (of one of supported types),
read contents and map it to one of simple mappings ( |
| public ValueIterator | anySequenceFrom(Object source)
Method for creating |
| public Object[] | |
| public <T> T[] | |
| public byte[] | |
| public ObjectCodec | Returns: Wrapper over this object to adapt toObjectCodec APIConvenience method for constructing an adapter that uses this
instance as a |
| public String | |
| public <T> T | |
| public <T> ValueIterator | beanSequenceFrom(Class<T> type, Object source)
Method for creating |
| public static JSON. | |
| public static JSON. | |
| public JSONComposer | |
| public <C extends Collection | |
| public CollectionComposer | |
| public MapComposer | |
| public MapComposer | |
| public JSONComposer | |
| public JSONComposer | |
| public JSONComposer | |
| public JSONComposer | |
| public JSONComposer | |
| public <T extends TreeNode> T | |
| public <T extends TreeNode> T | |
| public JsonParser | createParser(Object source)
Factory method for opening a
|
| public JsonFactory | |
| public TreeCodec | |
| public final boolean | |
| public List | |
| public <T> List | |
| public Map | |
| public <T> Map | |
| public <T extends TreeNode> T | treeFrom(Object source)
Method for reading content as a JSON Tree (of type that configured
|
| public <T extends TreeNode> ValueIterator | treeSequenceFrom(Object source)
Method for creating |
| public Version | version()
Implements com. Method called to detect version of the component that implements this interface;
returned version should never be null, but may return specific "not available"
instance (see |
| public JSON | Returns: New instance with specifiedPrettyPrinter (if not same as currently configured);
this otherwise.PrettyPrinter to use for pretty-printing output (of null to disable
pretty-printing)Mutant factory for constructing an instance with specified |
| public JSON | with(JSON.
Mutant factory for constructing an instance with specified feature
enabled or disabled (depending on |
| public JSON | |
| public JSON | Returns: New instance with specified factory (if not same as currently configured);this otherwise.Jackson core format factory to use for low-level decoding/encoding f)
Deprecated
Since 2.11 should not try changing underlying stream factory but create
a new instance if necessary: method will be removed from 3.0 at latest
Mutant factory method for constructing new instance with specified |
| public JSON | Returns: New instance with specified codec (if not same as currently configured);this otherwise.Tree codec to use for reading/writing of tree representation c)
Deprecated
Since 2.11 should try using builder (see
builder() and create
properly configured instance
Mutant factory for constructing an instance with specified |
| public JSON | Returns: New instance with specifiedJSONReader (if not same as currently configured);
this otherwise.Customized r)JSONReader to use instead of standard one
Deprecated
Since 2.11 should try using builder (see
builder() and create
properly configured instance
Mutant factory for constructing an instance with specified |
| public JSON | Returns: New instance with specifiedJSONWriter (if not same as currently configured);
this otherwise.Customized w)JSONWriter to use instead of standard one
Deprecated
Since 2.11 should try using builder (see
builder() and create
properly configured instance
Mutant factory for constructing an instance with specified |
| public JSON | with(MapBuilder b)
Mutant factory for constructing an instance with specified |
| public JSON | with(CollectionBuilder b)
Mutant factory for constructing an instance with specified |
| public JSON | with(ReaderWriterProvider rwp)
Deprecated
Since 2.11 should register using
JacksonJrExtension
Mutant factory for constructing an instance with specified |
| public JSON | |
| public void | |
| public void | |
| public void | |
| public void |