Parse to JsonObject from GSM GET response


I'm trying to parse to a JsonObject the response I get from performing a GET request via GSM.
So I'm using the inet library, because I'm using the SIMCOM900 Shield for Arduino Uno, and I'm using the function httpGET with all the parameters correct, and I do get the desired response, but I'm just not able to convert the packet body to a JSON object. I'm using the ArduinoJson library.

The response from my web service to the arduino is:

Data received: HTTP/1.1 200 OK 
Content-Length: 15

Here's my code:

(the problem is in the loop() method)

#include <SIM900.h>
#include <SoftwareSerial.h>
#include <inetGSM.h>
#include <ArduinoJson.h>

/*    GPS defs            */ 
static const int RXPin                  = 4;
static const int TXPin                  = 3; 

InetGSM inet;

int numdata;
char msg[59];
boolean started = false;
boolean attached = false;

void setup() {
  Serial.println(F("GSM Shield starting..."));
  if (gsm.begin(9600)) {
    started = true;

  if(started) {
    if (inet.attachGPRS("", "vodafone", "vodafone")) {
      attached = true;
    else {


void loop()
  if(attached) {
    numdata = inet.httpGET("", 80, ("/cards/exists/").c_str(), msg, 59);

    Serial.println(F("\nNumber of data received:"));
    Serial.println(F("\nData received:")); 
    if(!strstr(msg, "null")) {
      char* realMessage = strstr(msg, "{") + 1;
      StaticJsonBuffer<100> jsonBuffer;
      JsonObject& root = jsonBuffer.parseObject(realMessage);
      char* t = root["line"];

I'm having problems, its only printing the t and readMessage variables as white lines.
What am I doing wrong?

In the output:

Data received: HTTP/1.1 200 OK
Content-Length: 15

What, EXACTLY, do you think the JSON output is?

Here's a hint. It does NOT start after the {.

In the output:What, EXACTLY, do you think the JSON output is?

Here's a hint. It does NOT start after the {.

I actually solutioned that myself, thank you anyway.
Also to mention that I solutioned it by getting the content length of the body from the response, with a pointer to Content-Length: (char* szContentLen = strstr(msg, "Content-Length:");, then parsed the next chars as an int with atoi(), so I could retrieve the rest of the string with the parsed out length, with out-of-bounds checks of course. The payload could then be parsed by using the JSON parser.
Thanks for your shitty response anyway.