jeudi 18 janvier 2018

How to avoid \ in json response in laravel 5.5

When I run these code

Return response ()->json($data,200);

Output

[{\"Gender\":\"male\"}]

But I want output without \

 [{"gender":"male"}]



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2DNVXR4
via IFTTT

Aucun commentaire:

Enregistrer un commentaire