Laravel\Lumen\Testing\Concerns\MakesHttpRequests::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->assertJson($this->response->getContent(), "JSON was not returned from [{$this->currentUri}].");
            return $this;
        }
        return $this->seeJsonContains($data, $negate);
    }