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
Arpit BajpaiArpit Bajpai 

Visualforce Remoting Exception: Unexpected character ('n' (code 110)): was expecting double-quote to start field name at [line:1, column:3]

Hello All,
I am getting the below exception when calling a Remote action method 
inside the controller class

Visualforce Remoting Exception: Unexpected character ('n' (code 110)): was expecting double-quote to start field name at [line:1, column:3] 

Code i am using, which is giving error 
Map<String, Object> inputData = (Map<String, Object>)JSON.deserializeUntyped(newCustomerFormJSON);
Best Answer chosen by Arpit Bajpai
Arpit BajpaiArpit Bajpai
Hi Anudeep,

thanks for quick response. 

I already checked that json is correct, issue is resolve actual issue is when I am debugging inputdata map then it’s giving exception. 
I try to give the correct kye in the debug now the issue is resolve.


thanks again for quick response.

All Answers

AnudeepAnudeep (Salesforce Developers) 
Hi Arpit, 

This issue occurs when there is an issue with the JSON. I recommend validating your JSON using any tool for example https://jsonlint.com/

See this answer on Salesforce Stack Exchange as a reference.

Anudeep
Arpit BajpaiArpit Bajpai
Hi Anudeep,

thanks for quick response. 

I already checked that json is correct, issue is resolve actual issue is when I am debugging inputdata map then it’s giving exception. 
I try to give the correct kye in the debug now the issue is resolve.


thanks again for quick response.
This was selected as the best answer