Alternate version of json_create_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 | a JSON linked list |
|
character(kind=CDK,len=*), | intent(in) | :: | path | path to the variable |
||
type(json_value), | intent(out), | optional | pointer | :: | p | pointer to the variable
specify by |
logical(kind=LK), | intent(out), | optional | :: | found | true if there were no errors (variable found or created) |
|
logical(kind=LK), | intent(out), | optional | :: | was_created | true if it was actually created (as opposed to already being there) |
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_create_by_path(json,me,path,p,found,was_created)
implicit none
class(json_core),intent(inout) :: json
type(json_value),pointer,intent(in) :: me !! a JSON linked list
character(kind=CDK,len=*),intent(in) :: path !! path to the variable
type(json_value),pointer,intent(out),optional :: p !! pointer to the variable
!! specify by `path`
logical(LK),intent(out),optional :: found !! true if there were no errors
!! (variable found or created)
logical(LK),intent(out),optional :: was_created !! true if it was actually created
!! (as opposed to already being there)
call json%create(me,to_unicode(path),p,found,was_created)
end subroutine wrap_json_create_by_path