<PackageReference Include="Newtonsoft.Json" Version="10.0.2" />

JProperty

public class JProperty : JContainer
Represents a JSON property.
public string Name { get; }

Gets the property name.

public JToken Value { get; set; }

Gets or sets the property value.

public JProperty(JProperty other)

Initializes a new instance of the JProperty class from another JProperty object.

public JProperty(string name, object[] content)

Initializes a new instance of the JProperty class.

public JProperty(string name, object content)

Initializes a new instance of the JProperty class.

public static JProperty Load(JsonReader reader)

Loads a JProperty from a JsonReader.

public static JProperty Load(JsonReader reader, JsonLoadSettings settings)

Loads a JProperty from a JsonReader.

public static Task<JProperty> LoadAsync(JsonReader reader, CancellationToken cancellationToken = default)

Asynchronously loads a JProperty from a JsonReader.

public static Task<JProperty> LoadAsync(JsonReader reader, JsonLoadSettings settings, CancellationToken cancellationToken = default)

Asynchronously loads a JProperty from a JsonReader.