@@ -280,34 +280,7 @@ subroutine initialize_json_core_in_file(me,verbose,compact_reals,&
280
280
implicit none
281
281
282
282
class(json_file),intent (inout ) :: me
283
- logical (LK),intent (in ),optional :: verbose ! ! mainly useful for debugging (default is false)
284
- logical (LK),intent (in ),optional :: compact_reals ! ! to compact the real number strings for output (default is true)
285
- logical (LK),intent (in ),optional :: print_signs ! ! always print numeric sign (default is false)
286
- character (kind= CDK,len=* ),intent (in ),optional :: real_format ! ! Real number format: 'E' [default], '*', 'G', 'EN', or 'ES'
287
- integer (IK),intent (in ),optional :: spaces_per_tab ! ! number of spaces per tab for indenting (default is 2)
288
- logical (LK),intent (in ),optional :: strict_type_checking ! ! if true, no integer, double, or logical type
289
- ! ! conversions are done for the `get` routines
290
- ! ! (default is false)
291
- logical (LK),intent (in ),optional :: trailing_spaces_significant ! ! for name and path comparisons, is trailing
292
- ! ! space to be considered significant.
293
- ! ! (default is false)
294
- logical (LK),intent (in ),optional :: case_sensitive_keys ! ! for name and path comparisons, are they
295
- ! ! case sensitive. (default is true)
296
- logical (LK),intent (in ),optional :: no_whitespace ! ! if true, printing the JSON structure is
297
- ! ! done without adding any non-significant
298
- ! ! spaces or linebreaks (default is false)
299
- logical (LK),intent (in ),optional :: unescape_strings ! ! If false, then the raw escaped
300
- ! ! string is returned from [[json_get_string]]
301
- ! ! and similar routines. If true [default],
302
- ! ! then the string is returned unescaped.
303
- character (kind= CK,len= 1 ),intent (in ),optional :: comment_char ! ! If present, this character is used
304
- ! ! to denote comments in the JSON file,
305
- ! ! which will be ignored if present.
306
- ! ! Example: `!` or `#`.
307
- logical (LK),intent (in ),optional :: use_rfc6901_paths ! ! If true, then path values in the
308
- ! ! `get_by_path` routines are interpreted
309
- ! ! as RFC 6901 "JSON Pointer" paths.
310
- ! ! By default, this is False.
283
+ #include " json_initialize_arguments.inc"
311
284
312
285
call me% core% initialize(verbose,compact_reals,&
313
286
print_signs,real_format,spaces_per_tab,&
@@ -386,34 +359,7 @@ function initialize_json_file(p,verbose,compact_reals,&
386
359
type (json_file) :: file_object
387
360
type (json_value),pointer ,optional ,intent (in ) :: p ! ! `json_value` object to cast
388
361
! ! as a `json_file` object
389
- logical (LK),intent (in ),optional :: verbose ! ! mainly useful for debugging (default is false)
390
- logical (LK),intent (in ),optional :: compact_reals ! ! to compact the real number strings for output (default is true)
391
- logical (LK),intent (in ),optional :: print_signs ! ! always print numeric sign (default is false)
392
- character (kind= CDK,len=* ),intent (in ),optional :: real_format ! ! Real number format: 'E' [default], '*', 'G', 'EN', or 'ES'
393
- integer (IK),intent (in ),optional :: spaces_per_tab ! ! number of spaces per tab for indenting (default is 2)
394
- logical (LK),intent (in ),optional :: strict_type_checking ! ! if true, no integer, double, or logical type
395
- ! ! conversions are done for the `get` routines
396
- ! ! (default is false)
397
- logical (LK),intent (in ),optional :: trailing_spaces_significant ! ! for name and path comparisons, is trailing
398
- ! ! space to be considered significant.
399
- ! ! (default is false)
400
- logical (LK),intent (in ),optional :: case_sensitive_keys ! ! for name and path comparisons, are they
401
- ! ! case sensitive. (default is true)
402
- logical (LK),intent (in ),optional :: no_whitespace ! ! if true, printing the JSON structure is
403
- ! ! done without adding any non-significant
404
- ! ! spaces or linebreaks (default is false)
405
- logical (LK),intent (in ),optional :: unescape_strings ! ! If false, then the raw escaped
406
- ! ! string is returned from [[json_get_string]]
407
- ! ! and similar routines. If true [default],
408
- ! ! then the string is returned unescaped.
409
- character (kind= CK,len= 1 ),intent (in ),optional :: comment_char ! ! If present, this character is used
410
- ! ! to denote comments in the JSON file,
411
- ! ! which will be ignored if present.
412
- ! ! Example: `!` or `#`.
413
- logical (LK),intent (in ),optional :: use_rfc6901_paths ! ! If true, then path values in the
414
- ! ! `get_by_path` routines are interpreted
415
- ! ! as RFC 6901 "JSON Pointer" paths.
416
- ! ! By default, this is False.
362
+ #include " json_initialize_arguments.inc"
417
363
418
364
call file_object% initialize(verbose,compact_reals,&
419
365
print_signs,real_format,spaces_per_tab,&
0 commit comments