thinghttp json parse string get more value.
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Safak Agustoslu
il 18 Mar 2023
Commentato: Safak Agustoslu
il 23 Mar 2023
I want to get 2-3 of the results at once using parse string in thingHTTP. Is it possible?
I can get 1 value using PArse string, but I want to get several values together. I want to get date and time together from the results in this example.
Results is :
{ "date": "03-18-2023", "milliseconds_since_epoch": 1679147976499, "time": "01:59:36 PM" }
How can I write parse string box in thinghttp?
Thanks
2 Commenti
Risposta accettata
Sachin
il 23 Mar 2023
Hi
I understand that you want more values using parse string in thinghttp.
I assume that your URL response is JSON. Since you want to get multiple values at once So I suggest[AK1] you to use the ‘webread’ function in MATLAB. This function will help you to get all the JSON object values at once.
webread('your url')
This will return a struct with fields.
For more information about ‘webread’ refer to:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su JSON Format in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!