ho JSON
stringa come di seguitoCome rimuovere particolare attributo dalla stringa JSON utilizzando C#
[{
"attachments": [{ "comment": "communication", "comment_date_time": "2035826"} ],
"spent_hours": "4.00",
"description": ""
},
{
"attachments": [],
"spent_hours": "4.00",
"description": ""
}]
Come posso rimuovere l'attributo attachments
dalla stringa JSON
utilizzando C#. Sto usando JSON.net.
tenta di utilizzare Newtonsoft.JSON per convertire JSON per oggetti .NET e quindi è possibile rimuoverlo facilmente –
provare questo => http: //james.newtonking.com/pages/json-net.aspx –
Penso che si possa fare come descritto nel http://stackoverflow.com/a/32153051 –