json_file_load_from_string Subroutine

private subroutine json_file_load_from_string(me, str)

Load the JSON data from a string.

Example

Load JSON from a string:

     type(json_file) :: f
     call f%load_from_string('{ "name": "Leonidas" }')

Arguments

Type IntentOptional AttributesName
class(json_file), intent(inout) :: me
character(kind=CK,len=*), intent(in) :: str

string to load JSON data from


Contents


Source Code

    subroutine json_file_load_from_string(me, str)

    implicit none

    class(json_file),intent(inout)      :: me
    character(kind=CK,len=*),intent(in) :: str  !! string to load JSON data from

    call me%core%parse(str=str, p=me%p)

    end subroutine json_file_load_from_string