JObjectHelperSetValue Method

Sets a value in a target JSON structure at the specified path.

Definition

Namespace: MFiles.VAF.Configuration.JsonMapping
Assembly: MFiles.VAF.Configuration (in MFiles.VAF.Configuration.dll) Version: 23.12.13247.3
C#
public JToken SetValue(
	JObject target,
	string targetPath,
	JToken value
)

Parameters

target  JObject
The structure to set the value in.
targetPath  String
The path in the target structure where the value should be set.
value  JToken
The value to set.

Return Value

JToken
The JSON property or array item that was set.

See Also