Package | Description |
---|---|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.jsonschema |
Classes needed for JSON schema support (currently just ability
to generate schemas using serialization part of data mapping)
|
com.fasterxml.jackson.databind.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.ser |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
com.fasterxml.jackson.databind.ser.std |
Modifier and Type | Method and Description |
---|---|
ObjectNode |
ObjectMapper.createObjectNode()
Note: return type is co-variant, as basic ObjectCodec
abstraction cannot refer to concrete node types (as it's
part of core package, whereas impls are part of mapper
package)
|
ObjectNode |
JsonNode.withObject(com.fasterxml.jackson.core.JsonPointer ptr)
Same as
JsonNode.withObject(JsonPointer, OverwriteMode, boolean) but
with defaults of OvewriteMode#NULLS (overwrite mode)
and true for preferIndex (that is, will try to
consider JsonPointer segments index if at all possible
and only secondarily as property name |
ObjectNode |
JsonNode.withObject(com.fasterxml.jackson.core.JsonPointer ptr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex)
Method that can be called on Object or Array nodes, to access a Object-valued
node pointed to by given
JsonPointer , if such a node exists:
or if not, an attempt is made to create one and return it. |
ObjectNode |
JsonNode.withObject(String exprOrProperty)
Method that works in one of possible ways, depending on whether
exprOrProperty is a valid JsonPointer expression or
not (valid expression is either empty String "" or starts
with leading slash / character). |
ObjectNode |
JsonNode.withObject(String expr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex)
Short-cut equivalent to:
withObject(JsonPointer.compile(expr), overwriteMode, preferIndex);
|
ObjectNode |
JsonNode.withObjectProperty(String propName)
Method similar to
JsonNode.withObject(JsonPointer, OverwriteMode, boolean) -- basically
short-cut to:
withObject(JsonPointer.compile("/"+propName), OverwriteMode.NULLS, false);
that is, only matches immediate property on ObjectNode
and will either use an existing ObjectNode that is
value of the property, or create one if no value or value is NullNode . |
Modifier and Type | Method and Description |
---|---|
ObjectNode |
JsonSchema.getSchemaNode()
Deprecated.
Method for accessing root JSON object of the contained schema.
|
Constructor and Description |
---|
JsonSchema(ObjectNode schema)
Deprecated.
Main constructor for schema instances.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectNode |
ObjectNode._put(String fieldName,
JsonNode value) |
protected abstract ObjectNode |
ContainerNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr,
com.fasterxml.jackson.core.JsonPointer currentPtr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex) |
protected ObjectNode |
ArrayNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr,
com.fasterxml.jackson.core.JsonPointer currentPtr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex) |
protected ObjectNode |
BaseJsonNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr,
com.fasterxml.jackson.core.JsonPointer currentPtr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex) |
protected ObjectNode |
ObjectNode._withObject(com.fasterxml.jackson.core.JsonPointer origPtr,
com.fasterxml.jackson.core.JsonPointer currentPtr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex) |
protected ObjectNode |
ArrayNode._withObjectAddTailElement(com.fasterxml.jackson.core.JsonPointer tail,
boolean preferIndex) |
protected ObjectNode |
ObjectNode._withObjectAddTailProperty(com.fasterxml.jackson.core.JsonPointer tail,
boolean preferIndex) |
ObjectNode |
ArrayNode.addObject()
Method that will construct an ObjectNode and add it at the end
of this array node.
|
ObjectNode |
ObjectNode.deepCopy() |
ObjectNode |
ArrayNode.findParent(String fieldName) |
ObjectNode |
ValueNode.findParent(String fieldName) |
ObjectNode |
ObjectNode.findParent(String propertyName) |
ObjectNode |
ArrayNode.insertObject(int index)
Method for creating an
ObjectNode , appending it at the end
of this array, and returning the newly created node
(note: NOT 'this' array) |
ObjectNode |
ContainerNode.objectNode()
Factory method that constructs and returns an empty
ObjectNode
Construction is done using registered JsonNodeFactory . |
ObjectNode |
JsonNodeCreator.objectNode() |
ObjectNode |
JsonNodeFactory.objectNode()
Factory method for constructing an empty JSON Object ("struct") node
|
ObjectNode |
ObjectNode.put(String fieldName,
BigDecimal v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
BigInteger v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
boolean v)
Method for setting value of a field to specified String value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Boolean v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
byte[] v)
Method for setting value of a field to specified binary value
|
ObjectNode |
ObjectNode.put(String fieldName,
double v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Double v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
float v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Float v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
int v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Integer v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
long v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Long v)
Method for setting value of a field to specified numeric value.
|
ObjectNode |
ObjectNode.put(String propertyName,
short v)
Method for setting value of a property to specified numeric value.
|
ObjectNode |
ObjectNode.put(String fieldName,
Short v)
Alternative method that we need to avoid bumping into NPE issues
with auto-unboxing.
|
ObjectNode |
ObjectNode.put(String fieldName,
String v)
Method for setting value of a field to specified String value.
|
ObjectNode |
ObjectNode.putNull(String propertyName)
Method for setting value of a property to explicit
null value. |
ObjectNode |
ObjectNode.putObject(String propertyName)
Method that will construct an ObjectNode and add it as a
property of this
ObjectNode , replacing old value, if any. |
ObjectNode |
ObjectNode.putPOJO(String propertyName,
Object pojo)
Method for adding an opaque Java value as the value of specified property.
|
ObjectNode |
ObjectNode.putRawValue(String propertyName,
RawValue raw) |
ObjectNode |
ObjectNode.remove(Collection<String> propertyNames)
Method for removing specified field properties out of
this ObjectNode.
|
ObjectNode |
ObjectNode.removeAll()
Method for removing all properties, such that this
ObjectNode will contain no properties after call.
|
ObjectNode |
ObjectNode.retain(Collection<String> propertyNames)
Method for removing all properties out of this ObjectNode
except for ones specified in argument.
|
ObjectNode |
ObjectNode.retain(String... propertyNames)
Method for removing all properties out of this ObjectNode
except for ones specified in argument.
|
ObjectNode |
ArrayNode.with(String exprOrProperty)
Deprecated.
|
ObjectNode |
ObjectNode.with(String exprOrProperty)
Deprecated.
|
ObjectNode |
BaseJsonNode.withObject(com.fasterxml.jackson.core.JsonPointer ptr,
JsonNode.OverwriteMode overwriteMode,
boolean preferIndex) |
ObjectNode |
ObjectNode.withObject(String exprOrProperty) |
ObjectNode |
ObjectNode.withObjectProperty(String propName) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
ObjectNode._childrenEqual(ObjectNode other) |
JsonNode |
ObjectNode.putAll(ObjectNode other)
Deprecated.
Since 2.4 use
setAll(ObjectNode) , |
<T extends JsonNode> |
ObjectNode.setAll(ObjectNode other)
Method for adding all properties of the given Object, overriding
any existing values for those properties.
|
Modifier and Type | Method and Description |
---|---|
protected void |
BeanPropertyWriter._depositSchemaProperty(ObjectNode propertiesNode,
JsonNode schemaNode) |
void |
BeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.3: new code should use the alternative
depositSchemaProperty
method |
void |
BeanPropertyWriter.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
abstract void |
PropertyWriter.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.2
|
void |
PropertyFilter.depositSchemaProperty(PropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
Since 2.3: new code should use the alternative
depositSchemaProperty
method |
Modifier and Type | Method and Description |
---|---|
protected void |
UnwrappingBeanPropertyWriter._depositSchemaProperty(ObjectNode propertiesNode,
JsonNode schemaNode) |
void |
SimpleBeanPropertyFilter.depositSchemaProperty(BeanPropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
void |
SimpleBeanPropertyFilter.depositSchemaProperty(PropertyWriter writer,
ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected ObjectNode |
StdSerializer.createSchemaNode(String type) |
protected ObjectNode |
StdSerializer.createSchemaNode(String type,
boolean isOptional) |
Modifier and Type | Method and Description |
---|---|
void |
MapProperty.depositSchemaProperty(ObjectNode propertiesNode,
SerializerProvider provider)
Deprecated.
|
Copyright © 2008–2024 FasterXML. All rights reserved.