Mike Marks
Mike Marks

Reputation: 10139

Is there any physical, readable difference between a JSON string and a JSONP string?

I've modified my WebAPI to return JSONP, but how can I tell if it's really JSONP and not regular JSON? I understand that the "P" stands for Padding. Is there a physical, readable difference between JSON and JSONP?

Upvotes: 1

Views: 61

Answers (1)

T McKeown
T McKeown

Reputation: 12857

jsonp will be in the form of this: (returned by the server of course)

"callbackFunction( { jsonSyntax } );"

jsonp is just JSON but with a callback javascript function wrapping it.

Upvotes: 2

Related Questions