json_value_to_string Subroutine

private subroutine json_value_to_string(me, str)

Arguments

Type IntentOptional AttributesName
type(json_value), intent(in), pointer:: me
character(kind=CK,len=:), intent(out), allocatable:: str

prints structure to this string

Description

Print the json_value structure to an allocatable string.

Calls

proc~~json_value_to_string~~CallsGraph proc~json_value_to_string json_value_to_string proc~json_value_print json_value_print proc~json_value_to_string->proc~json_value_print proc~json_value_print->proc~json_value_print interface~throw_exception throw_exception proc~json_value_print->interface~throw_exception proc~real_to_string real_to_string proc~json_value_print->proc~real_to_string proc~json_count json_count proc~json_value_print->proc~json_count proc~integer_to_string integer_to_string proc~json_value_print->proc~integer_to_string none~write_it write_it proc~json_value_print->none~write_it proc~json_throw_exception json_throw_exception interface~throw_exception->proc~json_throw_exception proc~compact_real_string compact_real_string proc~real_to_string->proc~compact_real_string
Help

Called By

proc~~json_value_to_string~~CalledByGraph proc~json_value_to_string json_value_to_string proc~json_file_print_to_string json_file_print_to_string proc~json_file_print_to_string->proc~json_value_to_string interface~json_print_to_string json_print_to_string interface~json_print_to_string->proc~json_value_to_string proc~test_4 test_4 proc~test_4->interface~json_print_to_string program~jf_test_4 jf_test_4 program~jf_test_4->proc~test_4
Help

Source Code

    subroutine json_value_to_string(me,str)

    implicit none

    type(json_value),pointer,intent(in)              :: me
    character(kind=CK,len=:),intent(out),allocatable :: str  !! prints structure to this string

    str = ''
    call json_value_print(me, iunit=unit2str, str=str, indent=1, colon=.true.)

    end subroutine json_value_to_string