fortplot_spec_config_parse Module

JSON parser for the Vega-Lite config block and related top-level properties (padding, autosize).



Subroutines

public subroutine parse_config(json, pos, cfg, status)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: json
integer, intent(inout) :: pos
type(config_t), intent(inout) :: cfg
integer, intent(out) :: status

public subroutine parse_padding(json, pos, pad, status)

Parse padding as integer object or single integer.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: json
integer, intent(inout) :: pos
type(padding_t), intent(inout) :: pad
integer, intent(out) :: status

public subroutine parse_autosize(json, pos, autosize_type, status)

Parse autosize as a string or object (extracting type).

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: json
integer, intent(inout) :: pos
character(len=:), intent(inout), allocatable :: autosize_type
integer, intent(out) :: status