Skip to content

Add_by_path_otherways supports? #578

Open
@LaplaceSoda

Description

@LaplaceSoda

It seems that the subroutine add_by_path only support the default way to specify the path (path_mode=1), actually the following codes does not work

program main
    use json_module
    implicit none
    type(json_file) :: new_json
    new_json = add_test()
    call new_json%print()
contains
    function add_test() result(json)
        type(json_file) :: json

        call json%initialize(path_mode=2)
        call json%add('/aaa', 123)
        call json%print()
    end function add_test
end program main

I wonder if this module can deal with the add_by_path with path_mode=2(or3) normally. If not, will there be an update to support it ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions