+ Start a Discussion
Sindhu AmbarkarSindhu Ambarkar 

Getting JSON error expecting curly brace at beginning of object

Hi,

Getting JSON error expecting curly brace on beginning of object.Code is looking fine
Can someone explain me.

Thanks & Regards,
Sindhu Ambarkar.
Alexander TsitsuraAlexander Tsitsura
Hi Sindhu,

Can u share you JSON example?

Thanks,
Alex
Sindhu AmbarkarSindhu Ambarkar
Hi Alex,

I gave the sample without naming conventions.



"sObjectName" : "object Api", 
"sObjectLabel" : "object", 
"searchText" : null, 
"filter" : { 
"predicates" : [ { 
"RowNum" : 1, 
"FieldValue" : "value", 
"FieldType" : "PICKLIST", 
"FieldName" : "object Api", 
"FieldLabel" : "field name", 
"CompOper" : "equal to" 
} ], 
"condExpr" : "1", 
"childFilter" : null 
}, 
"fields" : [ "field api name"],
"exprStr" :"(field name = value)" 
}
Getting JSON error expecting curly bracket at beginning of object.
Please help me out.

Thanks & Regards,
Sindhu Ambarkar.
Alexander TsitsuraAlexander Tsitsura
I'm trying use JSON parser, but i can not receive error message.
Sindhu AmbarkarSindhu Ambarkar
I tried in JSON validator, there was no error but unable to proceed.

Thanks & Regards,
Sindhu Ambarkar.