Provides the ability to parse JSON and obtain platform related data objects from it.
Method DetailString[] getChildren(String path) Returns all of the node names for the specified path.
Parameters:
Returns: String[] Since: 01-29-2016 String getNodeType(String path) Returns the object type of the jsonpath expression target. Result will be string, number, boolean, object, array, list, unknown, 'null', or null
Parameters:
Returns: String Since: 01-29-2016 boolean hasPath(String path) Returns true if the jsonpath expression results in a non null endpoint.
Parameters:
Returns: boolean Since: 01-29-2016 DataList readChildren(String path) Reads the child nodes of the given path and returns a DataList containing child names and types
Parameters:
Returns: DataList DataList Name: nodes DataList Fields: name, type, length Since: 01-29-2016 Data readData(String path) Creates a Data object by evaluating the jsonpath expression. If the target is an array or a non-text collection, an empty Data is returned. Child objects and arrays are omitted.
Parameters:
Returns: Data Since: 01-29-2016 Data readData(String path, boolean prefixEnabled) Creates a Data object by evaluating the jsonpath expression. If the target is an array or collection, an empty Data is returned. If the target contains a child object or array, the child object or array is serialized as a JSON string.
Parameters:
Returns: Data Since: 01-29-2016 DataList readDataList(String name, String path) Creates a DataList object by evaluating the jsonpath expression. Returns null if path not found. Child objects and arrays are ignored.
Parameters:
Returns: DataList Since: 01-29-2016 DataList readDataList(String name, String path, boolean prefixEnabled) Creates a DataList object by evaluating the jsonpath expression. Returns null if path not found. Child objects and arrays are serialized to a JSON string.
Parameters:
Returns: DataList Since: 01-29-2016 JSONParser readPath(String path) Creates a JSONParser object by evaluating the jsonpath expression. Returns null if path not found or the value of the path is null or the endpoint is not an object.
Parameters:
Returns: JSONParser Since: 01-29-2016 Payload readPayload(String path) Creates a Payload object by evaluating the jsonpath expression. Returns null if path not found.
Parameters:
Returns: Payload Since: 01-29-2016 Payload readPayload(String path, boolean prefixEnabled) Creates a Payload object by evaluating the jsonpath expression. Returns null if path not found. Child objects and arrays are serialized to JSON string
Parameters:
Returns: Payload Since: 01-29-2016 String readValue(String path) Returns the value by evaluating the jsonpath expression.
Parameters:
Returns: String Since: 01-29-2016 reload(String json) Reloads this object with the specified json string.
Parameters:
Since: 01-29-2016 String toJson() Returns the content of this JSONParser as JSON. Returns: String Since: 11-08-2016 String toString() Returns a description of this object. Returns: String Since: 01-29-2016 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Dec 03, 2024 10:24 AM |