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

Extensions

public static class Extensions
Contains the LINQ to JSON extension methods.
public static IJEnumerable<JToken> Ancestors<T>(this IEnumerable<T> source) where T : JToken

Returns a collection of tokens that contains the ancestors of every token in the source collection.

public static IJEnumerable<JToken> AsJEnumerable(this IEnumerable<JToken> source)

Returns the input typed as IJEnumerable<T>.

public static IJEnumerable<T> AsJEnumerable<T>(this IEnumerable<T> source) where T : JToken

Returns the input typed as IJEnumerable<T>.

public static IJEnumerable<JToken> Children<T>(this IEnumerable<T> source) where T : JToken

Returns a collection of child tokens of every array in the source collection.

public static IEnumerable<U> Children<T, U>(this IEnumerable<T> source) where T : JToken

Returns a collection of converted child tokens of every array in the source collection.

public static IJEnumerable<JToken> Descendants<T>(this IEnumerable<T> source) where T : JContainer

Returns a collection of tokens that contains the descendants of every token in the source collection.

public static IJEnumerable<JProperty> Properties(this IEnumerable<JObject> source)

Returns a collection of child properties of every object in the source collection.

public static U Value<U>(this IEnumerable<JToken> value)

Converts the value.

public static U Value<T, U>(this IEnumerable<T> value) where T : JToken

Converts the value.

public static IJEnumerable<JToken> Values(this IEnumerable<JToken> source, object key)

Returns a collection of child values of every object in the source collection with the given key.

public static IJEnumerable<JToken> Values(this IEnumerable<JToken> source)

Returns a collection of child values of every object in the source collection.

public static IEnumerable<U> Values<U>(this IEnumerable<JToken> source, object key)

Returns a collection of converted child values of every object in the source collection with the given key.

public static IEnumerable<U> Values<U>(this IEnumerable<JToken> source)

Returns a collection of converted child values of every object in the source collection.