Skip to content

JsonPathManager.Add(string path, object value) Method

Shuzhao Feng edited this page Jan 24, 2024 · 6 revisions

Definition

Add a value to the JsonPathManager tree.

If you're using v0.3.0 and above, this method is equivalent to JsonPathManager.Add(string path, object value, Priority priority) with Priority.Normal.

Method Signature

JsonPathManager.Add(string path, object value);

Usage

JsonPathManager instance = new JsonPathManager();

instance.Add("$.path.to.location", "value");

Parameters

path : string

The path to the location where the value should be added.

Supported Path Syntax

See JsonPathSerializer Supported Paths.

value : object

The value to add at the location specified by the path.

Supported Versions

v0.1.0 (unstable) and above
  • v0.3.0
  • v0.2.0
  • v0.1.2
  • v0.1.0 (unstable)

Clone this wiki locally