print_json

Function print_json 

Source
pub fn print_json(result: &CqlResult, writer: &mut dyn Write)
Expand description

Format and print query results as a JSON array.

Each row becomes a JSON object mapping column names to values. Matches the format produced by Python cqlsh --json. NaN and Infinity float values are serialized as quoted strings since they are not valid JSON numbers.