public function json()
    {
        $json = json_decode($this->getResponseBody(), true);
        if (is_null($json)) {
            PHPUnit::fail('Unable to decode json response!');

            throw new InvalidJSONException('Unable to decode json response!');
        }

        return $json;
    }
public function json()
    {
        $json = json_decode($this->getResponseBody(), true);
        if (is_null($json)) {
            PHPUnit::fail('Unable to decode json response!');

            throw new InvalidJSONException('Unable to decode json response!');
        }

        return $json;
    }
public function json ( ) { $ json = json_decode ( $ this -> getResponseBody ( ) , true ) ; if ( is_null ( $ json ) ) { PHPUnit :: fail ( 'Unable to decode json response!' ) ; throw new InvalidJSONException ( 'Unable to decode json response!' ) ; } return $ json ; }
Get the json response as an associative array.

@return array
@throws \StatonLab\TripalTestSuite\Exceptions\InvalidJSONException
Get the json response as an associative array .