Skip to main content

json_sample_fields

Function json_sample_fields 

Source
fn json_sample_fields(sample: &str) -> Vec<SampledField>
Expand description

The fields of the first row of a JSON array sample, in the order they are written there.

Read out of the text rather than through serde_json, whose maps sort an object’s keys and would so hand the chart its axes in alphabetical order. A quoted value is a string however numeric it looks, which is what tells a year apart from a label.