Activity Forums Salesforce® Discussions What are the drawbacks of JSON in Salesforce?

  • chanchal kumar

    Member
    August 7, 2018 at 2:44 pm

    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.

     

  • madhulika shah

    Member
    September 17, 2018 at 10:26 am

    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.

  • Parul

    Member
    September 21, 2018 at 10:23 am

    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

  • Avnish Yadav

    Member
    September 21, 2018 at 12:40 pm

    Hello,

    Drawbacks of JSON i-

    1. No error Handling calls.
    2. 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.

  • shariq

    Member
    September 22, 2018 at 3:41 am

    Hi,

    Lot of difficulty for developers in debugging JSON.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs