@@ -62,7 +62,6 @@ subroutine test_1(error_cnt)
62
62
! print the parsed data to the console
63
63
write (error_unit,' (A)' ) ' '
64
64
write (error_unit,' (A)' ) ' printing the file...'
65
- ! write(output_unit,'(A)') '{ "part a" :' !Wrap 3 outputs to make stdout valid json
66
65
call json% print_file()
67
66
if (json% failed()) then
68
67
call json% print_error_message(error_unit)
@@ -79,12 +78,14 @@ subroutine test_1(error_cnt)
79
78
write (error_unit,' (A)' ) ' '
80
79
write (error_unit,' (A)' ) ' printing each variable [namelist style]'
81
80
write (error_unit,' (A)' ) ' '
81
+ call core% initialize(unescape_strings= .false. )
82
82
call core% traverse(p,print_json_variable)
83
83
84
84
namelist_style = .false.
85
85
write (error_unit,' (A)' ) ' '
86
86
write (error_unit,' (A)' ) ' printing each variable [JSON style]'
87
87
write (error_unit,' (A)' ) ' '
88
+ call core% initialize(unescape_strings= .true. )
88
89
call core% traverse(p,print_json_variable)
89
90
90
91
! -------------------------
@@ -232,7 +233,6 @@ subroutine test_1(error_cnt)
232
233
233
234
write (error_unit,' (A)' ) ' '
234
235
write (error_unit,' (A)' ) ' printing the modified structure...'
235
- ! write(output_unit,'(A)') ', "part b" : '
236
236
call json% print_file()
237
237
if (json% failed()) then
238
238
call json% print_error_message(error_unit)
@@ -267,9 +267,7 @@ subroutine test_1(error_cnt)
267
267
268
268
write (error_unit,' (A)' ) ' '
269
269
write (error_unit,' (A)' ) ' printing the modified structure...'
270
- ! write(output_unit,'(A)') ', "part c" : '
271
270
call json% print_file()
272
- ! write(output_unit,'(A)') '}'
273
271
if (json% failed()) then
274
272
call json% print_error_message(error_unit)
275
273
error_cnt = error_cnt + 1
0 commit comments