Antwort auf: http-Request, Auswertung und Trace

Startseite Foren Deutsches LiveCode-Forum http-Request, Auswertung und Trace Antwort auf: http-Request, Auswertung und Trace

#13431
Klaus Major
Administrator

    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