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

风格不统一 提交于 2019-12-11 06:29:44

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/20802763/is-there-any-physical-readable-difference-between-a-json-string-and-a-jsonp-str

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!