Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Newtonsoft.​Json.​Linq.​Extensions

Assembly: Newtonsoft.Json

Inheritance: object → Extensions

Contains the LINQ to JSON extension methods.

Methods

public static IJEnumerable<​JToken>
Ancestors​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns a collection of tokens that contains the ancestors of every token in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the ancestors of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static IJEnumerable<​JToken>
AncestorsAndSelf​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns a collection of tokens that contains every token in the source collection, and the ancestors of every token in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains every token in the source collection, the ancestors of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static IJEnumerable<​JToken>
Descendants​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns a collection of tokens that contains the descendants of every token in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the descendants of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static IJEnumerable<​JToken>
DescendantsAndSelf​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns a collection of tokens that contains every token in the source collection, and the descendants of every token in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains every token in the source collection, and the descendants of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static IJEnumerable<​JProperty>
Properties​(System.​Collections.​Generic.​IEnumerable<​JObject> source)
Returns a collection of child properties of every object in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JProperty" /> that contains the properties of every object in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JObject" /> that contains the source collection.
public static IJEnumerable<​JToken>
Values​(System.​Collections.​Generic.​IEnumerable<​JToken> source, object key)
Returns a collection of child values of every object in the source collection with the given key.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the values of every token in the source collection with the given key.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
key The token key.
public static IJEnumerable<​JToken>
Values​(System.​Collections.​Generic.​IEnumerable<​JToken> source)
Returns a collection of child values of every object in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the values of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
Values​(System.​Collections.​Generic.​IEnumerable<​JToken> source, object key)
Returns a collection of converted child values of every object in the source collection with the given key.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the converted values of every token in the source collection with the given key.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
key The token key.
Values​(System.​Collections.​Generic.​IEnumerable<​JToken> source)
Returns a collection of converted child values of every object in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the converted values of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static U
Value​(System.​Collections.​Generic.​IEnumerable<​JToken> value)
Converts the value.
Returns A converted value.
value A <see cref="T:Newtonsoft.Json.Linq.JToken" /> cast as a <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> .
public static U
Value​(System.​Collections.​Generic.​IEnumerable<​T> value)
Converts the value.
Returns A converted value.
value A <see cref="T:Newtonsoft.Json.Linq.JToken" /> cast as a <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> .
public static IJEnumerable<​JToken>
Children​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns a collection of child tokens of every array in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the values of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
Children​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns a collection of converted child tokens of every array in the source collection.
Returns An <see cref="T:System.Collections.Generic.IEnumerable`1" /> that contains the converted values of every token in the source collection.
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static IJEnumerable<​JToken>
AsJEnumerable​(System.​Collections.​Generic.​IEnumerable<​JToken> source)
Returns the input typed as <see cref="T:Newtonsoft.Json.Linq.IJEnumerable`1" /> .
Returns The input typed as <see cref="T:Newtonsoft.Json.Linq.IJEnumerable`1" /> .
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public static IJEnumerable<​T>
AsJEnumerable​(System.​Collections.​Generic.​IEnumerable<​T> source)
Returns the input typed as <see cref="T:Newtonsoft.Json.Linq.IJEnumerable`1" /> .
Returns The input typed as <see cref="T:Newtonsoft.Json.Linq.IJEnumerable`1" /> .
source An <see cref="T:System.Collections.Generic.IEnumerable`1" /> of <see cref="T:Newtonsoft.Json.Linq.JToken" /> that contains the source collection.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object