If i use withJson for response, it converts my numbers to string. How to avoid it?
example:
$data = array('name' => 'Rob', 'age' => 40);
$newResponse = $oldResponse->withJson($data, 201);
$data = array('name' => 'Rob', 'age' => 40);
$newResponse = $oldResponse->withJson($data, 201, JSON_NUMERIC_CHECK);
Going to close this one as resolved.
Most helpful comment