The util.JSONArray class / util.JSONArray methods |
Fills a dynamic array variable with the elements contained in the JSON array object.
util.JSONArray.toFGL( dest DYNAMIC ARRAY )
The toFGL() method fills the DYNAMIC ARRAY passed as parameter with the corresponding values defined in the JSON array object.
The destination array must have the same structure as the JSON source data. For more details see JSON to Genero BDL conversion rules.
IMPORT util MAIN DEFINE ja util.JSONArray DEFINE arr DYNAMIC ARRAY OF STRING LET ja = util.JSONArray.parse('["aa","bb","cc"]') CALL ja.toFGL(arr) DISPLAY arr[2] -- bb END MAIN