C# Class Onism.Cldr.Tools.Subsetting.JTokenExtensions

Exibir arquivo Open project: pgolebiowski/onism-cldr

Public Methods

Method Description
RemoveFromParent ( this token ) : JToken

Removes this token from its parent. Assumes only JArray, JObject, JProperty, or JValue are to be encountered.

Subset ( this root, PatternCollection patterns ) : void

Removes tokens from this JSON token using a collection of patterns.

Private Methods

Method Description
Subset ( JToken token, Decision decision, DecisionDictionary decisions ) : void

Traverses the JSON in post-order, removing tokens bottom-up.

Method Details

RemoveFromParent() public static method

Removes this token from its parent. Assumes only JArray, JObject, JProperty, or JValue are to be encountered.
public static RemoveFromParent ( this token ) : JToken
token this
return JToken

Subset() public static method

Removes tokens from this JSON token using a collection of patterns.
public static Subset ( this root, PatternCollection patterns ) : void
root this
patterns PatternCollection
return void