as @dbc described in the comment, you can simply use the indexer to make this happen.
var item = JObject.Parse("{ 'str1': 'test1' }");
item["str1"] = "test2";
item["str3"] = "test3";
see the fiddle for more details
More Related Contents:
- parse JSON using json.net c# [closed]
- How can I parse JSON with C#?
- Deserializing JSON data to C# using JSON.NET
- Can I specify a path in an attribute to map a property in my class to a child property in my JSON?
- Casting interfaces for deserialization in JSON.NET
- JSON.Net throws StackOverflowException when using [JsonConvert()]
- How to show the “paste Json class” in visual studio 2012 when clicking on Paste Special?
- “Self Referencing Loop Detected” exception with JSON.Net
- Deserialize json array stream one item at a time
- How to Deserialize JSON data?
- Set default global json serializer settings
- How do I enumerate through a JObject?
- How to make JSON.Net serializer to call ToString() when serializing a particular type?
- Newtonsoft Json.Net serialize JObject doesn’t ignore nulls, even with the right settings
- JSON.net serialize directly from oledbconnection
- multiple JsonProperty Name assigned to single property
- Json.NET custom serialization with JsonConverter – how to get the “default” behavior
- Send JSON via POST in C# and Receive the JSON returned?
- Deserializing heterogenous JSON array into covariant List using Json.NET
- JSON deserialization – Map array indices to properties with JSON.NET
- DateTime column type becomes String type after deserializing DataTable
- Deserialize json object with dynamic items in C#
- JSON.NET serialize JObject while ignoring null properties
- Force JsonConvert.SerializeXmlNode to serialize node value as an Integer or a Boolean
- json net leading zeros (disable base-cast)
- Deserializing JSON into an object with Json.NET
- Ignore Base Class Properties in Json.NET Serialization
- Null-coalescing operator returning null for properties of dynamic objects
- Is there a way in Json.NET serialization to distinguish between “null because not present” and “null because null”?
- Json.net serialization of custom collection implementing IEnumerable