Closed
Description
I try to consume my own Laravel 5 API JSON response and I got this error message:
ErrorException: json_decode(): option JSON_BIGINT_AS_STRING not implemented
For this JSON output:
{
"errors": [
{
"status": "404",
"source": {
"pointer": "http://localhost/api/v1/this-is-not-exist-for-sure"
},
"title": "The requested resource has not been found",
"detail": "We're sorry, something unthinkable happened"
}
]
}
Did I do anything wrong?
/**
* @test
*/
public function it_proves_we_will_get_proper_json_for_404()
{
$this->json('GET', 'api/v1/this-is-not-exist-for-sure', $this->validHttpHeader)
->seeStatusCode(404)
->seeJsonContains(['status' => "404"]);
$resp = json_decode($this->response->content());
$manager = new Manager();
$exception = $manager->parse((string)$this->response->content());
}