What are the limitations of jsonp?



What are the limitations of jsonp?..

Answer / Dharmendra Kumar

JSONP (JSON with Padding) has several limitations:
1. JSONP cannot pass complex data structures like arrays or objects.
2. It is vulnerable to Cross-site Scripting (XSS) attacks due to its reliance on JavaScript's eval() function.
3. JSONP does not support HTTP methods other than GET, as it relies on script tags which do not support other methods.
4. JSONP requires a callback parameter, which can be a bit cumbersome and may require additional coding.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JSON Interview Questions

What is JSON Parser?

1 Answers  


Why do we use json in php?

1 Answers  


Do all the programming languages and platform support json?

1 Answers  


Is json rest or soap?

1 Answers  


Explain Syntax of JSON?

1 Answers  


Mention what are the JSON files?

1 Answers  


What does object.create do?

1 Answers  


How to generate/send json data at the client side?

1 Answers  


How to convert an object into json? What is the full syntax of json.stringify?

1 Answers  


Is json an api?

1 Answers  


How to use newtonsoft or json.net for serializing json data?

1 Answers  


Who is the Father of JSON ?

1 Answers  


Categories