Startseite › Foren › Deutsches LiveCode-Forum › http-Request, Auswertung und Trace › Antwort auf: http-Request, Auswertung und Trace
März 11, 2019 um 18:15 Uhr
#13431
Sicher kan man das, darum geht es doch hier! 🙂
...
put url("https://192.168.0.240/app_about") into tServerAntwort
## Check for errors here, I'll leave that to you :-)
## The server returns a JSON array, and LC can convert this to a LC array:
put JSONtoArray(tServerAntwort) into tLCArray
## Now you can parse that array LCArray...
put the keys of tLCArray
## Das wird eine Liste der verfügbaren KEY des Arrays in die Message Box schreiben:
## pbx
## pbxType
## version
## serial
## etc.
## Um nun Deinen Wert anzeigen zu lassen:
put tLCArray["pbx"] into fld "pbx"
put tLCArray["pbxtype"] into fld "pbxtype"
## etc...
Gruß
Klaus