protected function seeJsonEquals($expected)
    {
        if (is_array($expected)) {
            $expected = json_encode($expected);
        }

        $this->assertJsonStringEqualsJsonString($expected, $this->response());

        return $this;
    }
protected function seeJsonEquals($expected)
    {
        if (is_array($expected)) {
            $expected = json_encode($expected);
        }

        $this->assertJsonStringEqualsJsonString($expected, $this->response());

        return $this;
    }
protected function seeJsonEquals ( $ expected ) { if ( is_array ( $ expected ) ) { $ expected = json_encode ( $ expected ) ; } $ this -> assertJsonStringEqualsJsonString ( $ expected , $ this -> response ( ) ) ; return $ this ; }
Assert that an API response equals the provided array
or json-encoded array.

@param  array|string $expected
@return static
Assert that an API response equals the provided array or json - encoded array .