-
Notifications
You must be signed in to change notification settings - Fork 0
JsonPathManager Constructor Methods
Shuzhao Feng edited this page Jan 24, 2024
·
3 revisions
Creates a new JsonPathManager instance. The instance will store a JToken root, then the user can call methods to update the root.
JsonPathManager();JsonPathManager(JToken root);JsonPathManager(string root);JsonPathManager instance = new JsonPathManager();The root is initially uninitialized if no argument is provided. Reading from an uninitialized root will give an empty JObject.
The JToken root to initialize the instance to.
The string JSON root to initialize the instance to, which will be serialized into a JToken.
Throws JsonReaderException if the input is not a valid JSON string.
public IJEnumerable<JToken> Value { get; }public void Add(string path, object value);public string Build();public void Clear();public void Force(string path, object value); // v0.2.0 and abovepublic JToken? Remove(string path); // v0.2.0 and abovepublic void Add(string path, object value, Priority priority); // v0.3.0 and abovepublic void Append(string path, object value, Priority priority); // v0.3.0 and abovev0.1.0 (unstable) and above
- v0.3.0
- v0.2.0
- v0.1.2
- v0.1.0 (unstable)