Class JsonArray
java.lang.Object
com.northconcepts.datapipeline.json.builder.JsonNode
com.northconcepts.datapipeline.json.builder.JsonValue
com.northconcepts.datapipeline.json.builder.JsonArray
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarray()Adds an anonymous array element and returns it; only arrays (and the template root) accept one.getType()Returns the kind of JSON this node represents, which determines the child nodes it accepts.object()Adds an anonymous object element and returns it; only arrays (and the template root) accept one.Adds a scalar element whose value is computed by the given expression; only valid on array 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
-
JsonArray
public JsonArray()
-
-
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 anonymous object element and returns it; only arrays (and the template root) accept one. -
array
Description copied from class:JsonNodeAdds an anonymous array element and returns it; only arrays (and the template root) accept one. -
value
Description copied from class:JsonNodeAdds a scalar element whose value is computed by the given expression; only valid on array nodes.
-