Wrapper for json_get_path where "path" and "path_sep" are kind=CDK.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_core), | intent(inout) | :: | json | |||
type(json_value), | intent(in), | pointer | :: | p | a JSON linked list object |
|
character(kind=CDK,len=:), | intent(out), | allocatable | :: | path | path to the variable |
|
logical(kind=LK), | intent(out), | optional | :: | found | true if there were no problems |
|
logical(kind=LK), | intent(in), | optional | :: | use_alt_array_tokens | if true, then '()' are used for array elements otherwise, '[]' are used [default] |
|
character(kind=CDK,len=1), | intent(in), | optional | :: | path_sep | character to use for path separator (default is '.') |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
subroutine wrap_json_get_path(json, p, path, found, use_alt_array_tokens, path_sep)
implicit none
class(json_core),intent(inout) :: json
type(json_value),pointer,intent(in) :: p !! a JSON linked list object
character(kind=CDK,len=:),allocatable,intent(out) :: path !! path to the variable
logical(LK),intent(out),optional :: found !! true if there were no problems
logical(LK),intent(in),optional :: use_alt_array_tokens !! if true, then '()' are used for array elements
!! otherwise, '[]' are used [default]
character(kind=CDK,len=1),intent(in),optional :: path_sep !! character to use for path separator
!! (default is '.')
character(kind=CK,len=:),allocatable :: ck_path !! path to the variable
character(kind=CK,len=1) :: sep
! from unicode:
sep = path_sep
! call the main routine:
call json_get_path(json,p,ck_path,found,use_alt_array_tokens,sep)
! from unicode:
path = ck_path
end subroutine wrap_json_get_path