Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(json_value), | intent(in), | pointer | :: | me | ||
integer(kind=IK), | intent(in) | :: | iunit | the file unit (the file must already have been opened, can't be -1). |
Print the json_value structure to a file.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(kind=CK,len=:), | public, | allocatable | :: | dummy |
subroutine json_print_1(me,iunit)
implicit none
type(json_value),pointer,intent(in) :: me
integer(IK),intent(in) :: iunit !! the file unit (the file must already have been opened, can't be -1).
character(kind=CK,len=:),allocatable :: dummy
if (iunit/=unit2str) then
call json_value_print(me,iunit,str=dummy, indent=1, colon=.true.)
else
call throw_exception('Error in json_print: iunit must not be -1.')
end if
end subroutine json_print_1