initialize_json_file_from_string_v2 Function

private function initialize_json_file_from_string_v2(str, json_core_object) result(file_object)

Cast a JSON string and a json_core object as a json_file object.

Arguments

Type IntentOptional Attributes Name
character(kind=CK, len=*), intent(in) :: str

string to load JSON data from

type(json_core), intent(in) :: json_core_object

Return Value type(json_file)


Calls

proc~~initialize_json_file_from_string_v2~~CallsGraph proc~initialize_json_file_from_string_v2 json_file_module::initialize_json_file_from_string_v2 deserialize deserialize proc~initialize_json_file_from_string_v2->deserialize

Called by

proc~~initialize_json_file_from_string_v2~~CalledByGraph proc~initialize_json_file_from_string_v2 json_file_module::initialize_json_file_from_string_v2 interface~json_file json_file_module::json_file interface~json_file->proc~initialize_json_file_from_string_v2 proc~wrap_initialize_json_file_from_string_v2 json_file_module::wrap_initialize_json_file_from_string_v2 interface~json_file->proc~wrap_initialize_json_file_from_string_v2 proc~wrap_initialize_json_file_from_string_v2->proc~initialize_json_file_from_string_v2

Contents


Source Code

    function initialize_json_file_from_string_v2(str, json_core_object) &
                                        result(file_object)

    implicit none

    type(json_file)                     :: file_object
    character(kind=CK,len=*),intent(in) :: str  !! string to load JSON data from
    type(json_core),intent(in)          :: json_core_object

    file_object%core = json_core_object
    call file_object%deserialize(str)

    end function initialize_json_file_from_string_v2