Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Is Difference Between Json and Jsonp? [duplicate]

Tags:

json

jsonp

I am trying to access cross origin site via script.

So I am getting an error, I have searched on internet that shows the solution is the JsonP.

Anyone Please help me to know what is jsonp .

and what is the difference between json and jsonp.

Is JSONP cross browser compatible? can i use jsonp in mobile applications or asp.net mvc?

like image 771
Maulik Anand Avatar asked Jun 22 '14 09:06

Maulik Anand


1 Answers

JSONP is a simple way to overcome browser restrictions when sending JSON responses from different domains from the client.

But the practical implementation of the approach involves subtle differences that are often not explained clearly.

Here is a simple tutorial that shows JSON and JSONP side by side.

All the code is freely available at Github and a live version can be found at http://json-jsonp-tutorial.craic.com

like image 82
Cyber5h13ld Avatar answered Sep 19 '22 10:09

Cyber5h13ld