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
indranily81indranily81 

incorrect JSON returned while using Visualforce remoting.

HI,

I have a VFpage which uses VF remoting. The use case is I have an account say ABC Corp & Co.
Now if I fire a dynamic SOQL (i.e. Select AccountNAme from Account where id = <ABC Corp's SFDC ID>) then the returing JSON shows
amp along with the '&';

i.e. the returned JSON is ABC Corp &amp; Co.
The name should have been ABC Corp & Co.

Has anyone faced similar issue ?

Thanks
Indranil