You need to sign in to do that
Don't have an account?
Hari krishna 23
JSON parsing error
Hi I am getting some JSON parsing error wile parsing the response.
Error: FATAL_ERROR System.JSONException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [3,2]
Here is my JSON response:
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"uuid": "397434eb-e1d2-4c61-a4e7-29ec493e2fbe",
"disposition": null,
"lead_id": "6258020",
"first_name": "Abc",
"last_name": "Test",
"gender": "",
"primary_phone": "888-888-0008",
"primary_email": "abcdefgh@abc.com",
"secondary_phone": "",
"secondary_email": "",
"third_phone": "",
"street": "",
"street_2": "",
"city": "",
"state": null,
"zip_code": "",
"sub_sub_affiliate": "13",
"ip_address": "",
"datetime_qualified": null,
"datetime_do_not_call": null,
"datetime_contacted": null,
"datetime_resolved": null,
"datetime_expired": "2014-11-30T04:35:19.159",
"datetime_scheduled": null,
"latest_call_uuid": "a11912e6-da6a-4647-9aa2-0d72f9427a5f",
"datetime_last_called": "2014-09-08T18:00:19.515",
"num_calls": 15,
"num_originations": 15,
"num_attempts": 15,
"num_answered": 0,
"num_contacted": 0,
"num_inbounds": 0,
"num_callbacks": 0,
"datetime_modified": "2014-09-08T18:02:06.747",
"datetime_created": "2014-09-01T04:35:19.215"
}
]
}
Can some one help me to write the JSON parser for this type of response.
Error: FATAL_ERROR System.JSONException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at input location [3,2]
Here is my JSON response:
{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"uuid": "397434eb-e1d2-4c61-a4e7-29ec493e2fbe",
"disposition": null,
"lead_id": "6258020",
"first_name": "Abc",
"last_name": "Test",
"gender": "",
"primary_phone": "888-888-0008",
"primary_email": "abcdefgh@abc.com",
"secondary_phone": "",
"secondary_email": "",
"third_phone": "",
"street": "",
"street_2": "",
"city": "",
"state": null,
"zip_code": "",
"sub_sub_affiliate": "13",
"ip_address": "",
"datetime_qualified": null,
"datetime_do_not_call": null,
"datetime_contacted": null,
"datetime_resolved": null,
"datetime_expired": "2014-11-30T04:35:19.159",
"datetime_scheduled": null,
"latest_call_uuid": "a11912e6-da6a-4647-9aa2-0d72f9427a5f",
"datetime_last_called": "2014-09-08T18:00:19.515",
"num_calls": 15,
"num_originations": 15,
"num_attempts": 15,
"num_answered": 0,
"num_contacted": 0,
"num_inbounds": 0,
"num_callbacks": 0,
"datetime_modified": "2014-09-08T18:02:06.747",
"datetime_created": "2014-09-01T04:35:19.215"
}
]
}
Can some one help me to write the JSON parser for this type of response.