HTTP API parse multiple pins (using GET)

Using the “Get Multiple DataStream Values” I see the values in a serial print statement. How can these be parsed into their individual values?

https://blynk.cloud/external/api/get?token=&v11&v6

        payload = http.getString();
        Serial.println(payload);

The serial monitor and browser show: {“v11”:-5,“v6”:1}

Thanks in advance

You can use the ArduinoJson library to achieve that.

Thanks John, that worked!

I used http://arduinojson.org/example.json and the
example at JsonHttpClient.ino | ArduinoJson 6 to figure it out.

1 Like