I have the next JSON
{
"attrib1":"value1",
"attrib2":"value2",
"attrib3":"value3"
}
this Json are saved into a JObject
, and I want to create some function that change an specific value of this Json, in this case the attrib1
, just like:
JObject ChangeJson(JObject request,string new_value)
{
//some stuff to change the value from "attrib1"="value1" to "new_value"
}
the new Json:
{
"attrib1":"new_value",
"attrib2":"value2",
"attrib3":"value3"
}
Hope you can help me