@@ -857,7 +857,8 @@ subroutine json_initialize(me,verbose,compact_reals,&
857857 character (kind= CDK,len= 10 ) :: e ! ! real exponent digits
858858 character (kind= CDK,len= 2 ) :: sgn ! ! sign flag: `ss` or `sp`
859859 character (kind= CDK,len= 2 ) :: rl_edit_desc ! ! `G`, `E`, `EN`, or `ES`
860- integer (IK) :: istat ! ! `iostat` flag for write statements
860+ integer (IK) :: istat ! ! `iostat` flag for
861+ ! ! write statements
861862 logical (LK) :: sgn_prnt ! ! print sign flag
862863
863864 ! reset exception to false:
@@ -1102,13 +1103,14 @@ recursive subroutine json_value_clone_func(from,to,parent,previous,next,children
11021103 implicit none
11031104
11041105 type (json_value),pointer :: from ! ! this is the structure to clone
1105- type (json_value),pointer :: to ! ! the clone is put here
1106- ! ! (it must not already be associated)
1106+ type (json_value),pointer :: to ! ! the clone is put here (it
1107+ ! ! must not already be associated)
11071108 type (json_value),pointer ,optional :: parent ! ! to%parent
11081109 type (json_value),pointer ,optional :: previous ! ! to%previous
11091110 type (json_value),pointer ,optional :: next ! ! to%next
11101111 type (json_value),pointer ,optional :: children ! ! to%children
1111- logical ,optional :: tail ! ! if "to" is the tail of its parent's children
1112+ logical ,optional :: tail ! ! if "to" is the tail of
1113+ ! ! its parent's children
11121114
11131115 nullify(to )
11141116
@@ -1467,7 +1469,8 @@ end subroutine wrap_json_info_by_path
14671469!
14681470! ### Example
14691471!
1470- ! The following example is an array with `var_type=json_integer`, `n_sets=3`, and `set_size=4`
1472+ ! The following example is an array with `var_type=json_integer`,
1473+ ! `n_sets=3`, and `set_size=4`
14711474!
14721475! ```json
14731476! {
@@ -1486,9 +1489,12 @@ subroutine json_matrix_info(json,p,is_matrix,var_type,n_sets,set_size,name)
14861489 class(json_core),intent (inout ) :: json
14871490 type (json_value),pointer :: p ! ! a JSON linked list
14881491 logical (LK),intent (out ) :: is_matrix ! ! true if it is a valid matrix
1489- integer (IK),intent (out ),optional :: var_type ! ! variable type of data in the matrix (if all elements have the same type)
1490- integer (IK),intent (out ),optional :: n_sets ! ! number of data sets (i.e., matrix rows if using row-major order)
1491- integer (IK),intent (out ),optional :: set_size ! ! size of each data set (i.e., matrix cols if using row-major order)
1492+ integer (IK),intent (out ),optional :: var_type ! ! variable type of data in the matrix
1493+ ! ! (if all elements have the same type)
1494+ integer (IK),intent (out ),optional :: n_sets ! ! number of data sets (i.e., matrix
1495+ ! ! rows if using row-major order)
1496+ integer (IK),intent (out ),optional :: set_size ! ! size of each data set (i.e., matrix
1497+ ! ! cols if using row-major order)
14921498 character (kind= CK,len= :),allocatable ,intent (out ),optional :: name ! ! variable name
14931499
14941500 type (json_value),pointer :: p_row ! ! for getting a set
@@ -6341,12 +6347,8 @@ subroutine json_get_by_path_jsonpath_bracket(json,me,path,p,found,create_it,was_
63416347 if (create) created = .false. ! should always exist
63426348 end if
63436349
6344- ! keep trailing space or not:
6345- if (json% trailing_spaces_significant) then
6346- ilen = len (path)
6347- else
6348- ilen = len_trim (path)
6349- end if
6350+ ! path length (don't need trailing spaces:)
6351+ ilen = len_trim (path)
63506352
63516353 if (ilen> 1 ) then
63526354
0 commit comments