Skip to main content

json_to_rows

Function json_to_rows 

Source
pub fn json_to_rows(value: &Value) -> Result<JsonRows>
Expand description

Convert a parsed JSON value (must be an array of objects) into ingest rows.

Same conversion as crate::GraphDb::ingest_json: json_to_value per field; nested objects / mixed arrays become per-row errors. A top-level value that is not an array of objects is GraphError::IngestError.