Added parser function for cJSON.

Next step: send data via TCP!