Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

json.net jobject replace value

JObject json= JObject.Parse(jsonString);
JArray entityTypeDtos= (JArray)json["EntityTypeDto"];
foreach(var e in entityTypeDtos)
{
  if(e["Language"] != null)
     e["Language"]="EN";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jobject #replace
ADD COMMENT
Topic
Name
1+8 =