JSON serialization for spec_t -> Vega-Lite JSON Produces valid Vega-Lite v5 JSON from Fortran spec_t types. Row-oriented output: data.values is an array of objects.
Escape a string for safe JSON embedding. Handles: " -> \", \ -> \, and control characters.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | s |
Serialize spec_t to a Vega-Lite JSON string
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(spec_t), | intent(in) | :: | spec |
Write spec_t as Vega-Lite JSON to a file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(spec_t), | intent(in) | :: | spec | |||
| character(len=*), | intent(in) | :: | filename | |||
| integer, | intent(out) | :: | status |