My org instance is https://ap1.salesforce.com/
Looks like it is an issue.
List<String> myArray = new List<String>();
for(Integer i=0;i<10;i++)
{
myArray.add('Test '+i);
System.debug(myArray[i]);
}
system.debug(JSON.serialize(myArray));
try to run this code in developer org..
you will get
Line: 11, Column: 14 Method does not exist or incorrect signature: JSON.serialize(List)
I know I used this before it works before. Anyone knows why this is not working.
If we use SYSTEM.JSON.serialize(List<String>)
then it works perfectly ....
Below code will work..
List<String> myArray = new List<String>();
for(Integer i=0;i<10;i++)
{
myArray.add('Test '+i);
System.debug(myArray[i]);
}
system.debug(SYSTEM.JSON.serialize(myArray));
I used JSON.serialize()
in so many VF pages. Now all the page showing this error.