[]
Json streaming fashion parser
public class JsonStreamParser
Name | Description |
---|---|
JsonStreamParser() | Initialize a new JsonStreamParser instance which will parse at the root of the JSON file. |
JsonStreamParser(IList) | Initialize a new JsonStreamParser instance which will parse at a specific repeatXPath elements. |
JsonStreamParser(string) | Initialize a new JsonStreamParser instance which will parse at a specific repeatXPath. |
Name | Description |
---|---|
DateParsingHandler | Specify if dates are formatted. |
JSON_ROOT | the root jsonpath |
_flattenObjects | whether to flatten objects |
_includeParentJsonPath | whether to include the parent json path |
Name | Description |
---|---|
DefaultColumns | Prepopulate the dictionary with a default list of columns, especially useful for handling JSON with hidden null values. |
HasNext | If there is a next page |
JsonKeyValue | Contain the next page link |
ObjectSeparator | The separator that separates a flatten object |
OtherPropertyXPath | Next Page XPath |
OutputItemList | the list when no event is specified |
ReturnSingleFields |
Name | Description |
---|---|
Parse(Stream, Encoding) | Takes a Newtonsoft.Json.JsonTextReader instance as argument and starts a streaming parsing process. Every each successfully parsed object, an IParser.FireItem() event will be triggered. |
ParseSubarray(JsonTextReader, Encoding) | Takes a Newtonsoft.Json.JsonTextReader instance as argument and starts a streaming parsing process. Every each successfully parsed object, an IParser.FireItem() event will be triggered. |
SetFlattenObjects(bool) | Indicates if the JSON objects should be flattened or not. |
SetIncludeParentJsonPath(bool) | Indicates if the response should contain the Parent Json Path. |
SetMaxItems(int) | Set the maximum number of items to parse. Since the data can be extremely large in some cases, we may want to parse a specific portion of it. |
Name | Description |
---|---|
OnItemFired | The OnItemFired event |