read_literal Subroutine

public subroutine read_literal(json, pos, val, status)

Read an arbitrary JSON value as a literal string. For strings returns the quoted content; for numbers, booleans, null returns the raw text.

Arguments

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