Alternate version of json_get_string_by_path, where “path” is kind=CDK
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_core), | intent(inout) | :: | json | |||
type(json_value), | intent(in), | pointer | :: | me | ||
character(kind=CDK,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 wrap_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=CDK,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
call json%get(me,to_unicode(path),value,found,default)
end subroutine wrap_json_get_string_by_path