Response::json() and numeric format response

Submitted by extjac - 4 years ago

reponse:json() to remove "" from numeric values

<!-- from this -->
{
    "name": "Jan",
    "value": "150"
}

<!-- to this -->
{
    "name": "Jan",
    "value": 150
}

<!--i used this-->
return Response::json( [ "data"=> $data ], 200, [], JSON_NUMERIC_CHECK );