JsonToTabular
public static class JsonToTabularConverts JSON text to a ChartGuru.ChartTabularData using
Newtonsoft.Json’s JToken.SelectTokens for full JSONPath support.
The selector should resolve to one of:
- An array of objects — each object becomes a row, the union of its
keys becomes the column set. Nested objects are flattened one level
with dot notation (
ohlc.open). - An array of scalars — produces a single column named
"value". - A single object — treated as a one-row dataset.
When rootSelector is empty the document root is used
directly.
Methods
Section titled “Methods”
Convert(string, string)
Section titled “Convert(string, string)”public static ChartTabularData Convert(string json, string rootSelector = "")Parses JSON into tabular chart data, optionally selecting a nested object or array as the row source.
Parameters
| Name | Type |
|---|---|
json |
System.String |
rootSelector |
System.String |
Returns
ChartGuru.ChartTabularData