Hi i'm trying to parse JSON resposne from webserver in my arduino in order to turn on and off a LED light. I'm using the wifi client repeating example to make a get request to my server:
http://arduino.cc/en/Tutorial/WiFiWebClientRepeating
Here is the portion wherewhat I make the GET request and it prints the JSON resposne toget printed back from the serial port:
clientconnecting.println("GET /abc/bze/ ..
HTTP/1.1");1 200 OK
client.println("HostDate: wwwSun, 06 Apr 2014 01:14:37 GMT
Server: Apache
X-Powered-By: PHP/5.abc5.ca");10
client.println("UserCache-AgentControl: ArduinoWiFino-cache
X-Frame-Options: SAMEORIGIN
Set-Cookie: expires=Sun, 06-Apr-2014 03:14:37 GMT; Max-Age=7200; path=/1.1"); httponly
client.println("ConnectionConnection: close");close
client.println();Transfer-Encoding: chunked
My JSON looks like this
Content-Type: application/json
19
{"lightstatus":"on"}
0
However, howHow do i parse the JSON portion of this response only so that I can use it to control my LED?
Thanks