Hoppa till huvudinnehållet

How to Parse JSON from Web Request

Kommentarer

2 kommentarer

  • Berend Veldkamp

    You don't need to do any parsing. Just use a Send Web Request with these parameters:

     

    ={ product: "observation", latitude: 52.516, longitude: 13.389, oneobservation: true, app_id: "devportal-demo-20180625", app_code: "9v2BkviRwi9Ot26kp2IysQ" }
    • Expect: json

     

    This will give you an object with everything from the json. E.g. an Alert with

    =$webRequest1.json.observations.location[0].observation[0].description

    will show 'Partly sunny. Quite cool.'

     

     

    0
  • Denise Beckham

    This is exactly what I needed! The only experience I've had with JSON has been making small edits to the config files of the HTML viewer, so I honestly had no idea what I was doing in this case.

    The syntax you gave for showing the description in an alert is extremely helpful! Thank you so much, Berend!

    0

Du måste logga in om du vill lämna en kommentar.