title: SIGSEGV when parsing string with JsonCpp
body: <p>I have a task serialized as JSON:</p>
  
  <pre><code>{
    text: "Some task",
    status: 1
  }
  </code></pre>
  
  <p>I'm using this function inside a <code>Serialize</code> namespace:</p>
  
  <pre><code>Task parseTask(std::string task) {
      Json::Value root;
      Json::Reader reader;
  
      if(reader.parse(task, root, false)) {
          std::string text = root["text"].asString();
          int status = root["status"].asInt();
  
          Task result(text);
          if(status == 1) result.setCompleted();
          return result;
      }
  }
  </code></pre>
  
  <p>I'm calling the function as follow:</p>
  
  <pre><code>Task t = Serialize::parseTask("{ text: \"Some Task\", status: 1 }");
  </code></pre>
  
  <p>And compiling with <code>-ljsoncpp</code> option. However I get:</p>
  
  <pre><code>terminated by signal SIGSEGV (Address boundary error)
  </code></pre>
  
  <p>I've been sweeping trough JsonCpp documentation but can't seem to find whats wrong with my code.</p>