Activity › Forums › Salesforce® Discussions › What are the drawbacks of JSON in Salesforce?
Tagged: Disadvantages, Drawbacks, Dynamic Script, Error Handling, JSON, JSON Calls
-
What are the drawbacks of JSON in Salesforce?
Posted by Prachi on August 7, 2018 at 1:42 PMWhat are the drawbacks of JSON in Salesforce?
shariq replied 7 years, 7 months ago 6 Members · 5 Replies -
5 Replies
-
Hello prachi,
Disadvantages of JSON is it has no error handling for JSON calls. If the dynamic script insertion works, you get called and will get the response perfectly. If not inserted, nothing happens. It just fails silently.
- [adinserter block='9']
-
Hi,
If JSON not inserted, nothing happens. It just fails silently. For example, you are not able to catch a 404 error from the server, Nor can you cancel or restart the request. You can, however, timeout after waiting a reasonable amount of time.
Another major drawback of JSON is that it can be quite dangerous if used with untrusted services or untrusted browsers, because a JSON service returns a JSON response wrapped in a function call, which will be executed by the browser if it will be used with untrusted browser it can be hacked, this makes the hosting Web Application Vulnerable to a variety of attacks.
If you are going to use JSON services, it’s very important to be aware of the threats which JSON have in that and also be aware of the things which can protect it. JSON only have limited supported tools which we can use during JSON development.
Thanks.
-
hi
If JSON not inserted, nothing happens. It just fails silently. For example, you are not able to catch a 404 error from the server, Nor can you cancel or restart the request. You can, however, timeout after waiting a reasonable amount of time.
Disadvantages of JSON is it has no error handling for JSON calls. If the dynamic script insertion works, you get called and will get the response perfectly. If not inserted, nothing happens. It just fails silently.
Thanks
-
Hello,
Drawbacks of JSON i-
- No error Handling calls.
- If the dynamic script insertion works, you get called and will get the response perfectly. If not inserted, nothing happens. It just fails silently.
Thanks.
-
Hi,
Lot of difficulty for developers in debugging JSON.
Hope this helps.
Log In to reply.