Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(json_file), | intent(inout) | :: | me | |||
integer(kind=IK), | intent(in) | :: | iunit | file unit number (must not be -1) |
Prints the JSON file to the specified file unit number.
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer(kind=IK), | public | :: | i | ||||
character(kind=CK,len=:), | public, | allocatable | :: | dummy |
subroutine json_file_print_1(me, iunit)
implicit none
class(json_file),intent(inout) :: me
integer(IK),intent(in) :: iunit !! file unit number (must not be -1)
integer(IK) :: i
character(kind=CK,len=:),allocatable :: dummy
if (iunit/=unit2str) then
i = iunit
call json_value_print(me%p,iunit=i,str=dummy,indent=1,colon=.true.)
else
call throw_exception('Error in json_file_print_1: iunit must not be -1.')
end if
end subroutine json_file_print_1