read_real Subroutine

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

Read a JSON number as real(wp). Recognises JSON null and maps it to IEEE NaN.

Arguments

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