fortplot_spec_json_parse Module

JSON deserializer: Vega-Lite JSON string -> spec_t

Parses the subset of Vega-Lite v5 that fortplot produces and consumes. Operates as a recursive-descent parser over a JSON character string with integer position tracking.

Delegates channel/scale/axis parsing to fortplot_spec_json_channels and data parsing to fortplot_spec_json_data.



Subroutines

public subroutine json_to_spec(json, spec, status)

Parse a Vega-Lite JSON string into spec_t

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: json
type(spec_t), intent(out) :: spec
integer, intent(out) :: status