Skip to content

Commit 62b2c88

Browse files
committed
minor change.
1 parent 354224c commit 62b2c88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/json_value_module.F90

+3-2
Original file line numberDiff line numberDiff line change
@@ -4933,8 +4933,9 @@ recursive subroutine json_value_print(json,p,iunit,str,indent,&
49334933
! check variable type of all the children.
49344934
! They must all be the same, and a scalar.
49354935
call json%info(element,var_type=var_type)
4936-
if (i>1 .and. (var_type/=var_type_prev .or. &
4937-
any(var_type==[json_object,json_array]))) then
4936+
if (var_type==json_object .or. &
4937+
var_type==json_array .or. &
4938+
(i>1 .and. var_type/=var_type_prev)) then
49384939
is_vector = .false.
49394940
exit
49404941
end if

0 commit comments

Comments
 (0)