The method is useful especially in situations where JSON number values cannot be represented by any of the ABL numeric data types (INTEGER, INT64 and DECIMAL). This method allows you to retrieve values regardless of the JSON data type. GetCharacter( ) and GetLongchar( ) require that the JSON value be a JSON string.
Return type:
Access:
Applies to:
GetJsonText( )
GetJsonText( INPUT index AS INTEGER )GetJsonText( INPUT index AS INTEGER,INPUT count AS INTEGER )An INTEGER identifying the value of the element to be returned. Indexing into JsonArrays is 1-based.An INTEGER specifying the number of elements, starting with the element at index, to be returned in the ABL array.
index is less than 1, is greater than the length of the JsonArray, or is the Unknown value (?)
count is less than 1 or is the Unknown value (?)
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |