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

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 before an item is added to the collection.

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

Occurs when the list changes or an item in the list changes.

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 an JsonWriter that can be used to add tokens to the JToken.

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

protected virtual void OnAddingNew(AddingNewEventArgs e)

Raises the AddingNew event.

Raises the CollectionChanged event.

protected virtual void OnListChanged(ListChangedEventArgs e)

Raises the ListChanged event.

public void RemoveAll()

Removes the child nodes from this token.

public void ReplaceAll(object content)

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