Support the ongoing development of →
Requests Architecture Configuration
Last updated 8 months ago.

What is a 'real json response'?


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


Thank you !


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;

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Khoya91170 khoya91170 Joined 10 Jun 2016


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

Your logo here?

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

© 2023 - All rights reserved.