json_get_real_vec_by_path Subroutine

private subroutine json_get_real_vec_by_path(json, me, path, vec, found, default)

Get a real vector from a json_value, given the path.

Type Bound

json_core

Arguments

Type IntentOptional Attributes Name
class(json_core), intent(inout) :: json
type(json_value), intent(in), pointer :: me
character(kind=CK, len=*), intent(in) :: path
real(kind=RK), intent(out), dimension(:), allocatable :: vec
logical(kind=LK), intent(out), optional :: found
real(kind=RK), intent(in), optional, dimension(:) :: default

default value if not found


Source Code

    subroutine json_get_real_vec_by_path(json, me, path, vec, found, default)

    implicit none

    class(json_core),intent(inout)                :: json
    type(json_value),pointer,intent(in)           :: me
    character(kind=CK,len=*),intent(in)           :: path
    real(RK),dimension(:),allocatable,intent(out) :: vec
    logical(LK),intent(out),optional              :: found
    real(RK),dimension(:),intent(in),optional     :: default !! default value if not found

    character(kind=CK,len=*),parameter :: routine = CK_'json_get_real_vec_by_path'

#include "json_get_vec_by_path.inc"

    end subroutine json_get_real_vec_by_path