Package | Description |
---|---|
com.fasterxml.jackson.jr.ob | |
com.fasterxml.jackson.jr.ob.api | |
com.fasterxml.jackson.jr.ob.impl |
Modifier and Type | Method and Description |
---|---|
static JSONObjectException |
JSONObjectException.from(JsonParser p,
String msg) |
static JSONObjectException |
JSONObjectException.from(JsonParser p,
String msg,
Object... args) |
static JSONObjectException |
JSONObjectException.from(JsonParser p,
Throwable problem,
String msg,
Object... args) |
static JSONObjectException |
JSONObjectException.fromUnexpectedIOE(IOException src)
Factory method used when "upgrading" an
IOException into
JSONObjectException : usually only needed to comply with
a signature. |
static JSONObjectException |
JSONObjectException.wrapWithPath(Throwable src,
JSONObjectException.Reference ref)
Method that can be called to either create a new JsonMappingException
(if underlying exception is not a JsonMappingException), or augment
given exception with given path/reference information.
|
static JSONObjectException |
JSONObjectException.wrapWithPath(Throwable src,
Object refFrom,
int index)
Method that can be called to either create a new JsonMappingException
(if underlying exception is not a JsonMappingException), or augment
given exception with given path/reference information.
|
static JSONObjectException |
JSONObjectException.wrapWithPath(Throwable src,
Object refFrom,
String refFieldName)
Method that can be called to either create a new JsonMappingException
(if underlying exception is not a JsonMappingException), or augment
given exception with given path/reference information.
|
Modifier and Type | Method and Description |
---|---|
protected <R> R |
ValueIterator._handleMappingException(JSONObjectException e) |
Modifier and Type | Method and Description |
---|---|
protected JsonParser |
JSON._parser(Object source) |
ValueIterator<Object> |
JSON.anySequenceFrom(Object source)
Method for creating
ValueIterator for reading
streaming JSON
content (specifically line-delimited and concatenated variants);
individual values are bound as "Simple" type: Map ,
List , String , Number or Boolean . |
Object[] |
JSON.arrayFrom(Object source) |
<T> T[] |
JSON.arrayOfFrom(Class<T> type,
Object source) |
byte[] |
JSON.asBytes(Object value) |
String |
JSON.asString(Object value) |
<T> T |
JSON.beanFrom(Class<T> type,
Object source) |
<T> ValueIterator<T> |
JSON.beanSequenceFrom(Class<T> type,
Object source)
Method for creating
ValueIterator for reading
streaming JSON
content (specifically line-delimited and concatenated variants);
individual values are bound to specific Bean (POJO) type. |
JSONComposer<byte[]> |
JSON.composeBytes() |
JSONComposer<String> |
JSON.composeString() |
JSONComposer<OutputStream> |
JSON.composeTo(File f) |
JSONComposer<OutputStream> |
JSON.composeTo(OutputStream out) |
JSONComposer<OutputStream> |
JSON.composeTo(Writer w) |
JSONComposer<OutputStream> |
JSON.composeUsing(JsonGenerator gen) |
JsonParser |
JSON.createParser(Object source)
Factory method for opening a
JsonParser to read content from one of
following supported sources
InputStream
Reader
byte[]
char[]
String /CharSequence
URL
File
|
List<Object> |
JSON.listFrom(Object source) |
<T> List<T> |
JSON.listOfFrom(Class<T> type,
Object source) |
Map<String,Object> |
JSON.mapFrom(Object source) |
<T> Map<String,T> |
JSON.mapOfFrom(Class<T> type,
Object source)
Read method for reading a
Map of type (usually POJO) values. |
<T extends TreeNode> |
JSON.treeFrom(Object source)
Method for reading content as a JSON Tree (of type that configured
TreeCodec , see JSON.with(TreeCodec) ) supports. |
<T extends TreeNode> |
JSON.treeSequenceFrom(Object source)
Method for creating
ValueIterator for reading
streaming JSON
content (specifically line-delimited and concatenated variants);
individual values are bound as JSON Trees(of type that configured
TreeCodec , see JSON.with(TreeCodec) ) supports. |
void |
JSON.write(Object value,
File f) |
void |
JSON.write(Object value,
JsonGenerator gen) |
void |
JSON.write(Object value,
OutputStream out) |
void |
JSON.write(Object value,
Writer w) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
MapBuilder.emptyMap()
Specialized method that is called when an empty list needs to
be constructed; this may be a new list, or an immutable shared
List, depending on implementation.
|
Map<String,Object> |
MapBuilder.singletonMap(String key,
Object value)
Specialized method that is called when an empty list needs to
be constructed; this may be a new list, or an immutable shared
List, depending on implementation.
|
Modifier and Type | Method and Description |
---|---|
protected JSONObjectException |
JSONAsObjectCodec._noTypeReference() |
protected JSONObjectException |
MapReader._reportProblem(JsonParser p) |
Modifier and Type | Method and Description |
---|---|
protected void |
JSONAsObjectCodec._checkResultType(Class<?> valueType,
Object ob) |
Copyright © 2020 FasterXML. All rights reserved.