Support the ongoing development of Laravel.io →
Requests Architecture Configuration
Last updated 2 years ago.
0

What is a 'real json response'?

0

For me, it's a result that could be parsed with the JSON.Parse() function without error no ?

0

Thank you !

0

It seems that if you have this:

var jsonObj = $.parseJSON(JSON.stringify(result));

You are converting it to a string just so you can convert it back. I'm not completely familiar with the nuances of '$.parseJSON' but I think you could just skip that conversion entirely:

var jsonObj = result;
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Khoya91170 khoya91170 Joined 10 Jun 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.