@@ -570,7 +570,7 @@ module json_value_module
570
570
! ````fortran
571
571
! type(json_core) :: json
572
572
! type(json_value),pointer :: p
573
- ! call json%create_integer(p,'value',42 )
573
+ ! call json%create_integer(p,42, 'value')
574
574
! ````
575
575
generic,public :: create_integer = > MAYBEWRAP(json_value_create_integer)
576
576
procedure :: MAYBEWRAP(json_value_create_integer)
@@ -7690,8 +7690,8 @@ subroutine json_value_create_logical(json,p,val,name)
7690
7690
7691
7691
class(json_core),intent (inout ) :: json
7692
7692
type (json_value),pointer :: p
7693
- character (kind= CK,len=* ),intent (in ) :: name ! ! variable name
7694
7693
logical (LK),intent (in ) :: val ! ! variable value
7694
+ character (kind= CK,len=* ),intent (in ) :: name ! ! variable name
7695
7695
7696
7696
call json_value_create(p)
7697
7697
call to_logical(p,val,name)
@@ -7711,8 +7711,8 @@ subroutine wrap_json_value_create_logical(json,p,val,name)
7711
7711
7712
7712
class(json_core),intent (inout ) :: json
7713
7713
type (json_value),pointer :: p
7714
- character (kind= CDK,len=* ),intent (in ) :: name
7715
7714
logical (LK),intent (in ) :: val
7715
+ character (kind= CDK,len=* ),intent (in ) :: name
7716
7716
7717
7717
call json% create_logical(p,val,to_unicode(name))
7718
7718
@@ -7738,8 +7738,8 @@ subroutine json_value_create_integer(json,p,val,name)
7738
7738
7739
7739
class(json_core),intent (inout ) :: json
7740
7740
type (json_value),pointer :: p
7741
- character (kind= CK,len=* ),intent (in ) :: name
7742
7741
integer (IK),intent (in ) :: val
7742
+ character (kind= CK,len=* ),intent (in ) :: name
7743
7743
7744
7744
call json_value_create(p)
7745
7745
call to_integer(p,val,name)
@@ -7760,8 +7760,8 @@ subroutine wrap_json_value_create_integer(json,p,val,name)
7760
7760
7761
7761
class(json_core),intent (inout ) :: json
7762
7762
type (json_value),pointer :: p
7763
- character (kind= CDK,len=* ),intent (in ) :: name
7764
7763
integer (IK),intent (in ) :: val
7764
+ character (kind= CDK,len=* ),intent (in ) :: name
7765
7765
7766
7766
call json% create_integer(p,val,to_unicode(name))
7767
7767
@@ -7787,8 +7787,8 @@ subroutine json_value_create_double(json,p,val,name)
7787
7787
7788
7788
class(json_core),intent (inout ) :: json
7789
7789
type (json_value),pointer :: p
7790
- character (kind= CK,len=* ),intent (in ) :: name
7791
7790
real (RK),intent (in ) :: val
7791
+ character (kind= CK,len=* ),intent (in ) :: name
7792
7792
7793
7793
call json_value_create(p)
7794
7794
call to_double(p,val,name)
@@ -7809,8 +7809,8 @@ subroutine wrap_json_value_create_double(json,p,val,name)
7809
7809
7810
7810
class(json_core),intent (inout ) :: json
7811
7811
type (json_value),pointer :: p
7812
- character (kind= CDK,len=* ),intent (in ) :: name
7813
7812
real (RK),intent (in ) :: val
7813
+ character (kind= CDK,len=* ),intent (in ) :: name
7814
7814
7815
7815
call json% create_double(p,val,to_unicode(name))
7816
7816
@@ -7836,8 +7836,8 @@ subroutine json_value_create_string(json,p,val,name)
7836
7836
7837
7837
class(json_core),intent (inout ) :: json
7838
7838
type (json_value),pointer :: p
7839
- character (kind= CK,len=* ),intent (in ) :: name
7840
7839
character (kind= CK,len=* ),intent (in ) :: val
7840
+ character (kind= CK,len=* ),intent (in ) :: name
7841
7841
7842
7842
call json_value_create(p)
7843
7843
call to_string(p,val,name)
@@ -7858,8 +7858,8 @@ subroutine wrap_json_value_create_string(json,p,val,name)
7858
7858
7859
7859
class(json_core),intent (inout ) :: json
7860
7860
type (json_value),pointer :: p
7861
- character (kind= CDK,len=* ),intent (in ) :: name
7862
7861
character (kind= CDK,len=* ),intent (in ) :: val
7862
+ character (kind= CDK,len=* ),intent (in ) :: name
7863
7863
7864
7864
call json% create_string(p,to_unicode(val),to_unicode(name))
7865
7865
0 commit comments