Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

JsonNode

A global object that provides methods to iterate over the JSON content.

You can access a JsonNode object by calling getAsJsonContent() on a request object.

You access JSON content from a POST or URL parameter by calling request.postParms.<parameter name>.getAsJsonContent() or request.urlParms.<parameter name>.getAsJsonContent().

Parent Topic:JSON APIs

JsonNode - getIterator(String xPath)

Returns a JsonNodeIterator object for the JSON content.

This method can only be used on the root node, but can be used to traverse deep into the JSON object. Subsequent traversals must use the iterator() method.

NameTypeDescription
xPathStringAn xPath expression.
TypeDescription
JsonNodeIteratorAn object that can iterate over nodes in the JSON object.

JsonNode - iterator()

Returns a JsonNodeIterator object that iterates over all child nodes of the current node.

NameTypeDescription
None  
TypeDescription
JsonNodeIteratorAn object that can iterate over nodes in the JSON object.

JsonNode - getAsString()

Returns the current node value as a string.

NameTypeDescription
None  
TypeDescription
StringThe current node value.

JsonNode - getAsString(String propertyName)

Returns the string value of the specified property.

NameTypeDescription
propertyNameStringName of the property.
TypeDescription
StringThe property value.

JsonNode - getName()

Returns the name of the current JSON node.

NameTypeDescription
None  
TypeDescription
StringName of the current JSON node.

JsonNode - valueFor(String tableName, String fieldName)

Specifies that the JSON property maps to the specified field in the specified table.

Calling this method on a JSON property tells the proxy that the value for this property maps to the specified field in the specified table. The proxy then decides if the field must be encrypted. If the table and field names are unknown, you can call the valueFor() method on a table and a field that are dynamically assigned based on the request.

NameTypeDescription
tableNameStringThe table name.
fieldNameStringThe field name.
TypeDescription
void 

JsonNode - encodedQueryFor(String tableName)

Specifies that the value of the JSON property is an encoded query for the specified table.

Calling this function on a JSON node tells the proxy that the value is an Encoded query strings for the specified table. The proxy parses the encoded query and encrypts the values for fields in the encoded query that must be encrypted.

NameTypeDescription
tableNameStringThe table that you expect the query to run on.
TypeDescription
void