JsonNode

  • リリースバージョン: Australia
  • 更新日 2026年03月12日
  • 所要時間:4分
  • 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().

    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.

    表 : 1. Parameters
    Name Type Description
    xPath String An xPath expression.
    表 : 2. Returns
    Type Description
    JsonNodeIterator An 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.

    表 : 3. Parameters
    Name Type Description
    None
    表 : 4. Returns
    Type Description
    JsonNodeIterator An object that can iterate over nodes in the JSON object.

    JsonNode - getAsString()

    Returns the current node value as a string.

    表 : 5. Parameters
    Name Type Description
    None
    表 : 6. Returns
    Type Description
    String The current node value.

    JsonNode - getAsString(String propertyName)

    Returns the string value of the specified property.

    表 : 7. Parameters
    Name Type Description
    propertyName String Name of the property.
    表 : 8. Returns
    Type Description
    String The property value.

    JsonNode - getName()

    Returns the name of the current JSON node.

    表 : 9. Parameters
    Name Type Description
    None
    表 : 10. Returns
    Type Description
    String Name 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.

    表 : 11. Parameters
    Name Type Description
    tableName String The table name.
    fieldName String The field name.
    表 : 12. Returns
    Type Description
    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.

    表 : 13. Parameters
    Name Type Description
    tableName String The table that you expect the query to run on.
    表 : 14. Returns
    Type Description
    void