4D v16.3JSON Stringify array |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
JSON Stringify array
JSON Stringify array
The JSON Stringify array command converts the 4D array array into a serialized JSON array. This command performs the opposite action of the JSON PARSE ARRAY command. In array, pass a 4D array containing the data to be serialized. This array may be of the text, real, Boolean, pointer or object type. Note: If you pass a scalar variable or field in array, the command will return a string with the parameter value between "[ ]". You can pass the optional * parameter to use pretty formatting in the resulting string. This improves the presentation of JSON data by including formatting characters when it is displayed in a Web page. Conversion of a text array: C_TEXT($jsonString) Conversion of a text array containing numbers: ARRAY TEXT($phoneNumbers;0) Conversion of an object array: C_OBJECT($ref_john) Conversion of a 4D selection in an object array: C_OBJECT($jsonObject)
See also
|
PROPERTIES
Product: 4D HISTORY
Created: 4D v14 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||