I am trying to remove the quotes from a particular member value from the JSON.
I need the JSON to be:
"editor": TextAreaEditor
Not:
"editor": "TextAreaEditor"
I need to be able to deserialize JSON into an object and serialize back to JSON
I am basically deserializng the below JSON and then serializing back into JSON for my c# web api.
configList = JsonConvert.DeserializeObject<List<ReportJsonDetails>>(json, settings);
I get this
Unexpected character encountered while parsing value: T. Path
'[0].headers[2].editor'
I saw a bunch of examples using JsonConverter. But most of the examples are manipulating the values and I doesnt seem like booleans, nulls and numbers are implemented that way.
JSON
[ {
"name": "DataviewReport",
"headers": [
{
"id": "id",
"caption": "Id",
"dataField": "id",
"visible": false
},
{
"id": "lastname",
"caption": "Last Name",
"dataField": "lastname",
"visible": true
},
{
"id": "FirstName",
"caption": "First Name",
"dataField": "levelNum",
"visible": true,
"editor": TextAreaEditor
}
] } ]
