getting the same error in JSON, user is the textbox value which is then pass in JSON for setting class level permissions in parse server
var cc = "role:" + user;
var jsonParam = "{ 'classLevelPermissions' :
{ 'get':
{ '*': true, '" + cc + "' : true },
'find':
{'*': true,'" + cc + "' : true },
'create':
{ '" + cc + "' : true },
'update':
{ '" + cc + "' : true },
'delete':
{ '" + cc + "' : true }
}
}";
const result = this.http.post(this.url,
{
"reqparam": JSON.parse(jsonParam)
}, httpOptions).toPromise();
console.log(result);
please help me to solve this.