Alternate version of json_get_real_vec_by_path, where “path” is kind=CDK
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_core), | intent(inout) | :: | json | |||
type(json_value), | pointer | :: | me | |||
character(kind=CDK,len=*), | intent(in) | :: | path | |||
real(kind=RK), | intent(out), | dimension(:), allocatable | :: | vec | ||
logical(kind=LK), | intent(out), | optional | :: | found |
subroutine wrap_json_get_real_vec_by_path(json, me, path, vec, found)
implicit none
class(json_core),intent(inout) :: json
type(json_value),pointer :: me
character(kind=CDK,len=*),intent(in) :: path
real(RK),dimension(:),allocatable,intent(out) :: vec
logical(LK),intent(out),optional :: found
call json%get(me, to_unicode(path), vec, found)
end subroutine wrap_json_get_real_vec_by_path