Get a character string from a json_value, given the path.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_core), | intent(inout) | :: | json | |||
type(json_value), | intent(in), | pointer | :: | me | ||
character(kind=CK, len=*), | intent(in) | :: | path | |||
character(kind=CK, len=:), | intent(out), | allocatable | :: | value | ||
logical(kind=LK), | intent(out), | optional | :: | found | ||
character(kind=CK, len=*), | intent(in), | optional | :: | default |
subroutine json_get_string_by_path(json, me, path, value, found, default) implicit none class(json_core),intent(inout) :: json type(json_value),pointer,intent(in) :: me character(kind=CK,len=*),intent(in) :: path character(kind=CK,len=:),allocatable,intent(out) :: value logical(LK),intent(out),optional :: found character(kind=CK,len=*),intent(in),optional :: default character(kind=CK,len=*),parameter :: default_if_not_specified = CK_'' character(kind=CK,len=*),parameter :: routine = CK_'json_get_string_by_path' #include "json_get_scalar_by_path.inc" end subroutine json_get_string_by_path