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
Satish PrajapatSatish Prajapat 

QueryResult must start with '{' in salesforce

When I was trying to get the ObjectList from lightning component in Apex. I deserialize the String and I am getting the error below:
FATAL_ERROR System.JSONException: QueryResult must start with '{' in salesforce
Best Answer chosen by Satish Prajapat
Satish PrajapatSatish Prajapat
Hello All,
The problem was in my code that I was using the nested query.
because of the nesting of SOQL query which I was return in lightning controller from Apex, I had problem. I remove nested Query. than It works.

Thanks,
Satish Kumar Prajapat