@@ -72,7 +72,7 @@ subroutine test_1(error_cnt)
7272 ! print the parsed data to the console
7373 write (error_unit,' (A)' ) ' '
7474 write (error_unit,' (A)' ) ' printing the file...'
75- call json% print_file()
75+ call json% print_file(error_unit )
7676 if (json% failed()) then
7777 call json% print_error_message(error_unit)
7878 error_cnt = error_cnt + 1
@@ -336,7 +336,7 @@ subroutine test_1(error_cnt)
336336
337337 write (error_unit,' (A)' ) ' '
338338 write (error_unit,' (A)' ) ' printing the modified structure...'
339- call json% print_file()
339+ call json% print_file(error_unit )
340340 if (json% failed()) then
341341 call json% print_error_message(error_unit)
342342 error_cnt = error_cnt + 1
@@ -370,7 +370,7 @@ subroutine test_1(error_cnt)
370370
371371 write (error_unit,' (A)' ) ' '
372372 write (error_unit,' (A)' ) ' printing the modified structure...'
373- call json% print_file()
373+ call json% print_file(error_unit )
374374 if (json% failed()) then
375375 call json% print_error_message(error_unit)
376376 error_cnt = error_cnt + 1
@@ -379,7 +379,7 @@ subroutine test_1(error_cnt)
379379 write (error_unit,' (A)' ) ' '
380380 write (error_unit,' (A)' ) ' printing the modified structure (compact mode)...'
381381 call json% initialize(no_whitespace= .true. )
382- call json% print_file()
382+ call json% print_file(error_unit )
383383 if (json% failed()) then
384384 call json% print_error_message(error_unit)
385385 error_cnt = error_cnt + 1
0 commit comments