func X3.EN_JSON_GET_KEYS(Clbfile JSON_IN, Char EN_JSON_GET_KEYS) : Integer

Returns the list of keys present in a Json or a collection

  • JSON_IN Clbfile Flux Json stream in which to look for keys
  • EN_JSON_GET_KEYS Char() Array containing the keys found
Return Integer Number of keys found
Example

# Opening the json file description of the current solution folders
Local Char TAB_KEYS(50)(20)
Local Clbfile JSON(8)
Openi filpath("","FOLDERS","json","X3_PUB") Using [FIC]
Iomode adxifs '' Using [FIC] : Iomode adxirs '' Using [FIC] : Iomode adxium 8 Using [FIC]
Rdseq [L]JSON Using [FIC] : Openi Using [FIC]
# Prints 2 and returns ("solution" and "folders") in variable [L]TAB_KEYSInfbox num$(func X3.EN_JSON_GET_KEYS([L]JSON, [L]TAB_KEYS))