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
Heaven DevHeaven Dev 

Unexpected character ('A' (code 76)): was expecting comma to separate OBJECT

Hello
          I have try to create dynamic apex page genrat.So I have use Tooling API calling.but it give me erorr "Unexpected character ('L' (code 76)): was expecting comma to separate OBJECT"

I have set Markup Field following this.

string MarkVal='';
        string objval='Account';      
        MarkVal += '<' + 'apex' + ':' + 'page standardController=' + '"\"' + objval + '\""' + '>' ;
        MarkVal += '\n';        
        MarkVal += '<' + 'c' + ':' + 'myComponent' + '>' ;
        MarkVal += '\n';
        MarkVal += '<' + '/c' + ':' + 'myComponent' + '>' ;
        MarkVal += '\n';
        MarkVal += '<' + '/apex:page>';
and reuest body in following this way ,
 
req.setBody('{"Name":"ApexSample2","ApiVersion" :40,"MasterLabel" :"ApexSample2" ,"ControllerType": 0,"Markup": "' + MarkVal+'" }');
If I am write without standardController is working but when I am use standardController="Account" is not working.

Can you please help me?