Class JsonObject
java.lang.Object
com.northconcepts.datapipeline.json.builder.JsonNode
com.northconcepts.datapipeline.json.builder.JsonValue
com.northconcepts.datapipeline.json.builder.JsonObject
A JSON object in a
JsonTemplate; fields are added with field(String, String), object(String)
and array(String).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds an array-valued field and returns the new array; only valid on object nodes.Adds a scalar field whose name and value are computed by the given expressions; only valid on object nodes.getType()Returns the kind of JSON this node represents, which determines the child nodes it accepts.Adds an object-valued field and returns the new object; only valid on object nodes.protected voidwriteEndImpl(ExpressionContext context, com.fasterxml.jackson.core.JsonGenerator generator) Writes this node's closing output, if any (such as an end-object or end-array token), after its children.protected voidwriteStartImpl(ExpressionContext context, com.fasterxml.jackson.core.JsonGenerator generator) Writes this node's opening output, if any: a start-object or start-array token, a field name or a scalar value.
-
Constructor Details
-
JsonObject
public JsonObject()
-
-
Method Details
-
getType
Description copied from class:JsonNodeReturns the kind of JSON this node represents, which determines the child nodes it accepts. -
writeStartImpl
protected void writeStartImpl(ExpressionContext context, com.fasterxml.jackson.core.JsonGenerator generator) throws Throwable Description copied from class:JsonNodeWrites this node's opening output, if any: a start-object or start-array token, a field name or a scalar value.- Specified by:
writeStartImplin classJsonNode- Throws:
Throwable
-
writeEndImpl
protected void writeEndImpl(ExpressionContext context, com.fasterxml.jackson.core.JsonGenerator generator) throws Throwable Description copied from class:JsonNodeWrites this node's closing output, if any (such as an end-object or end-array token), after its children.- Specified by:
writeEndImplin classJsonNode- Throws:
Throwable
-
object
Description copied from class:JsonNodeAdds an object-valued field and returns the new object; only valid on object nodes. -
array
Description copied from class:JsonNodeAdds an array-valued field and returns the new array; only valid on object nodes. -
field
Description copied from class:JsonNodeAdds a scalar field whose name and value are computed by the given expressions; only valid on object nodes.
-