@@ -62,7 +62,6 @@ subroutine test_1(error_cnt)
6262 ! print the parsed data to the console
6363 write (error_unit,' (A)' ) ' '
6464 write (error_unit,' (A)' ) ' printing the file...'
65- ! write(output_unit,'(A)') '{ "part a" :' !Wrap 3 outputs to make stdout valid json
6665 call json% print_file()
6766 if (json% failed()) then
6867 call json% print_error_message(error_unit)
@@ -79,12 +78,14 @@ subroutine test_1(error_cnt)
7978 write (error_unit,' (A)' ) ' '
8079 write (error_unit,' (A)' ) ' printing each variable [namelist style]'
8180 write (error_unit,' (A)' ) ' '
81+ call core% initialize(unescape_strings= .false. )
8282 call core% traverse(p,print_json_variable)
8383
8484 namelist_style = .false.
8585 write (error_unit,' (A)' ) ' '
8686 write (error_unit,' (A)' ) ' printing each variable [JSON style]'
8787 write (error_unit,' (A)' ) ' '
88+ call core% initialize(unescape_strings= .true. )
8889 call core% traverse(p,print_json_variable)
8990
9091 ! -------------------------
@@ -232,7 +233,6 @@ subroutine test_1(error_cnt)
232233
233234 write (error_unit,' (A)' ) ' '
234235 write (error_unit,' (A)' ) ' printing the modified structure...'
235- ! write(output_unit,'(A)') ', "part b" : '
236236 call json% print_file()
237237 if (json% failed()) then
238238 call json% print_error_message(error_unit)
@@ -267,9 +267,7 @@ subroutine test_1(error_cnt)
267267
268268 write (error_unit,' (A)' ) ' '
269269 write (error_unit,' (A)' ) ' printing the modified structure...'
270- ! write(output_unit,'(A)') ', "part c" : '
271270 call json% print_file()
272- ! write(output_unit,'(A)') '}'
273271 if (json% failed()) then
274272 call json% print_error_message(error_unit)
275273 error_cnt = error_cnt + 1
0 commit comments