blink\testing\RequestActor::seeJson PHP Method

seeJson() public method

Assert that the response contains JSON.
public seeJson ( array $data = null, boolean $negate = false )
$data array
$negate boolean
    public function seeJson(array $data = null, $negate = false)
    {
        if (is_null($data)) {
            $this->phpunit->assertJson($this->response->content(), "Failed asserting that JSON returned [{$this->request->path}].");
            return $this;
        }
        return $this->seeJsonContains($data, $negate);
    }