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

JContainer

Represents a token that can contain other tokens.
protected abstract IList<JToken> ChildrenTokens { get; }

Gets the container's children tokens.

public int Count { get; }

Gets the count of child JSON tokens.

Occurs when the items list of the collection has changed, or the collection is reset.

public virtual void Add(object content)

Adds the specified content as children of this JToken.

public void AddFirst(object content)

Adds the specified content as the first children of this JToken.

Creates a JsonWriter that can be used to add tokens to the JToken.

Returns a collection of the descendant tokens for this token in document order.

Returns a collection of the tokens that contain this token, and all descendant tokens of this token, in document order.

public void Merge(object content)

Merge the specified content into this JToken.

public void Merge(object content, JsonMergeSettings settings)

Merge the specified content into this JToken using JsonMergeSettings.

Raises the CollectionChanged event.

public void RemoveAll()

Removes the child nodes from this token.

public void ReplaceAll(object content)

Replaces the child nodes of this token with the specified content.