On the successful call, I am getting the JSONArray with the key \"objects\" and again the testValue with the key \"name\". The output is Like:
What worked for me is
defect.get("FormattedID").toString().substring(1,defect.get("FormattedID").toString().length()-1)