function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Abhishek Kumar 338Abhishek Kumar 338 

JSON_PARSER_ERROR - geeting this error below is the response

[{"message":"Unexpected parameter encountered during deserialization: user at [line:1, column:10]","errorCode":"JSON_PARSER_ERROR"}]
Array
(
    [2] => Array
        (
            [A] => Donation: Tithing
            [B] => D-THTN
            [C] => 22.52
            [D] => 185290
            [E] => No
            [F] => Tina
            [G] => Dixon Smith
            [H] => fgfghhgsmith@gmail.com
            [I] =>
            [J] => 3059951200
            [K] =>
            [L] =>
            [M] =>
            [N] =>
            [O] =>
            [P] =>
        )

    [3] => Array
        (
            [A] => Donation: Tithing
            [B] => D-THTN
            [C] => 150.00
            [D] => 185289
            [E] => No
            [F] => Eugene
            [G] => Chaviano
            [H] => huhuhu.chaviano@gmail.com
            [I] =>
            [J] => (917) 202-5007
            [K] =>
            [L] =>
            [M] =>
            [N] =>
            [O] =>
            [P] =>
        )

    [4] => Array
        (
            [A] => Donation: Zohar Project                           
            [B] => D-ZHPR
            [C] => 100.00
            [D] => 185268
            [E] => No
            [F] => Jill
            [G] => Janisch
            [H] => j51fdjdfdanidsch@comcast.net
            [I] => 7733442137
            [J] =>
            [K] => 7735451927
            [L] => United States
            [M] => IL
            [N] => Chicago
            [O] => 6059
            [P] => 425 Street
        )

    [5] => Array
        (
            [A] => Donation: Tithing
            [B] => D-THTN
            [C] => 260.00
            [D] => 185267
            [E] => No
            [F] => Esteban
            [G] => Arias
            [H] => estebanarisdfffascardona@hotmail.com
            [I] =>
            [J] => 3057536991
            [K] =>
            [L] => United States
            [M] => FL
            [N] => M
            [O] => 3337
            [P] => 425  Street
        )

)
Raj VakatiRaj Vakati
First COnvert the array into JSON and try to parse the JSON 


var myJsonString = JSON.stringify(yourArray);
Akhil ReddyAkhil Reddy
please use JSONToken Enum API to assert the tokens in JSON reponse (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_enum_System_JsonToken.htm)