src/Concerns/MakesHttpRequests.php
public function seeJsonEquals(array $data)
    {
        $actual = json_encode(Arr::sortRecursive(
            (array) $this->decodeResponseJson()
        ));

        $this->assertEquals(json_encode(Arr::sortRecursive($data)), $actual);

        return $this;
    }
public function seeJsonEquals(array $data)
    {
        $actual = json_encode(Arr::sortRecursive(
            (array) $this->decodeResponseJson()
        ));

        $this->assertEquals(json_encode(Arr::sortRecursive($data)), $actual);

        return $this;
    }
public function seeJsonEquals ( array $ data ) { $ actual = json_encode ( Arr :: sortRecursive ( ( array ) $ this -> decodeResponseJson ( ) ) ) ; $ this -> assertEquals ( json_encode ( Arr :: sortRecursive ( $ data ) ) , $ actual ) ; return $ this ; }
Assert that the response contains an exact JSON array.

@param  array  $data
@return $this
Assert that the response contains an exact JSON array .