Problem I’m currently using this method to test a string if it valid JSON. The JToken class depends on Newtonsoft.Json.Linq. […]
Tag: json.net
Extracting information from JSON
Problem Here is a simplified version of my JSON. { “Relations”: [ { “Type”: “A”, “Categories”: [ { “Name”: “Identity” […]
Getting a JObject by a property value
Problem I am building a contact management system. Each contact can relate to the business in one of three ways: […]
Pool readers and streams with Json.NET
Problem This code is built on Json.NET and gets called hundreds of times per second. My data starts in an […]
Json.Net set the value of the Json object by mixed Json path
Problem Code from: https://stackoverflow.com/a/65715088/6859121 It is use a mixed Json path to set Json value. Even if the object on […]
Deserialize string into property array of the deserializing type using json.net
Problem I have the input JSON {“QtyEqualsQtyWorked”:0,”ReasonCode”:”IN”} and my class is public class LoadForMovementOpt { public bool QtyEqualsQtyWorked { get; […]
Extracting information from JSON
Problem Here is a simplified version of my JSON. { “Relations”: [ { “Type”: “A”, “Categories”: [ { “Name”: “Identity” […]
TravelAdvice class
Problem I have never really had to use Json.net until now, so I’m very rusty at it. For that reason, […]
Reload configs in memory basis on a trigger efficiently
Problem (following up from here) I am working on a little project where I need to scan all the config […]