public function getContent()
 {
     $content = $this->getRawContent();
     switch ($this->_dataType) {
         case AbstractClient::DATA_TYPE_JSON:
             return CommonUtils::decodeJson($content);
         default:
             return $content;
     }
 }
 /**
  * @expectedException Mr\Exception\JsonException
  * @expectedExceptionMessage JSON Error: Syntax error, malformed JSON. JSON Data: { "status": "ok", }
  */
 public function testDecodeMalformedJson()
 {
     $data = CommonUtils::decodeJson('{ "status": "ok", }');
     // <-- has an extra comma
 }