Skip to main content

json

Function json 

Source
pub fn json(recorder: &Recorder) -> Result<String, SimError>
Expand description

The recorded rows as JSON: {"tool": {...}, "columns": [names], "rows": [[values], ...]}, each row in the columns’ order. tool names the program that wrote the file: {"name": "hpr-sim", "version": "0.1.0", "designation": "FS · SW · TOOL 005"}. A FlightSummary is serializable on its own (serde_json::to_string).

§Errors

SimError::Domain for a value that isn’t finite.