title: Parse JSON response?
body: <p>I'm trying to parse JSON response from webserver in my arduino in order to turn on and off a LED light. I'm using the <a href="http://arduino.cc/en/Tutorial/WiFiWebClientRepeating" rel="nofollow">WiFi client repeating example to make a GET request to my server</a>.</p>
  
  <p>Here is the portion where I make the GET request and it prints the JSON response to the serial port:</p>
  
  <pre><code>client.println("GET /abc/bze/ HTTP/1.1");
  client.println("Host: www.abc.ca");
  client.println("User-Agent: ArduinoWiFi/1.1");
  client.println("Connection: close");
  client.println();
  </code></pre>
  
  <p>My JSON looks like this</p>
  
  <pre><code>{"lightstatus":"on"}
  </code></pre>
  
  <p>However, how do I parse the JSON response only so that I can use it to control my LED? Thanks.</p>