src/Http/HttpResponse.php
public function jsonDecode()
    {
        $json = json_decode($this->body, true);
        if ($json===null){
            throw new JsonFormatException($this->body);
        }
        return $json;
    }
public function jsonDecode()
    {
        $json = json_decode($this->body, true);
        if ($json===null){
            throw new JsonFormatException($this->body);
        }
        return $json;
    }
public function jsonDecode ( ) { $ json = json_decode ( $ this -> body , true ) ; if ( $ json === null ) { throw new JsonFormatException ( $ this -> body ) ; } return $ json ; }
Decode as JSON

@return array|object

@throws JsonFormatException
Decode as JSON