Rally Software

  • 1.  Invalid JSON data returned from API

    Posted Aug 17, 2018 12:42 PM

    We have a case where API is returning invalid JSON data as the data has some special chars and they are not getting encoded. So our parser fails to parse and rejects that payload. Do we know how to handle this?.

    Here is one such record with value - 

    https://rally1.rallydev.com/slm/webservice/v2.0/PortfolioItem/EngrFeature/60276361735

    "c_ClarityID": null, "c_ClarityIDRef": {"LinkID": "8P0OYR\v", "DisplayString": null}
    LinkID has a special char and it breaks the JSON parser. Recommendations to handle
    the situation?



  • 2.  Re: Invalid JSON data returned from API
    Best Answer

    Broadcom Employee
    Posted Aug 17, 2018 01:12 PM

    Hi Manoj,

     

    This looks like a custom field. I guess the 'easy answer' is that if you escaped the backward slash char then it will work, but I guess you need this character.

     

    It probably will work better if we work this out via a support case. Will you be able to open up a support case, then reply back here with the case# . I'll pick up this case and work with you.

     

    I'll want to reproduce this, so I'll need to get from you the definition of this custom field, and understand how you enter the values to this field and what value you're entering.

     

    Will you be able to open a support case for this?

     

    Thanks,

    Sagi



  • 3.  Re: Invalid JSON data returned from API

    Posted Aug 17, 2018 06:10 PM

    I have created the case below on the issue –

     

    https://comm.support.ca.com/csupport/CaseManagement/cases/5000c00001cXfswAAC/d

     

     

     

    01170472<https://comm.support.ca.com/csupport/CaseManagement/cases/5000c00001cXfswAAC/d>

     

    Invalid JSON format in the web api for portfolio item

     

    Open

     

    3

     

    AGILE CENTRAL SAAS

     

    CISCO SYSTEMS INC (179870)

     

    08/17/2018 18:03

     

    08/17/2018 18:03

     

     

     

    Thanks

    - Manoj Channa

    ARCHITECT.IT

     

    mchanna@cisco.com

    Phone: +1 408 526 4763

    Mobile: +1 650 224 0181