Skip to main content

Module json

Module json 

Source
Expand description

Hand-rolled JSON serialization for the REST responses (no dependencies).

Functionsยง

breakdown ๐Ÿ”’
Group rows by a key and emit [{"<label>":..,"passed":..,...}].
quote ๐Ÿ”’
Quote and escape a string as a JSON value.
row_to_json ๐Ÿ”’
status_body
/api/status: overall counts plus per-suite and per-category breakdowns.
tests_body
/api/tests: the full row list.