Skip to content

Commit 49701e2

Browse files
committed
repro: rm outermost json object
1 parent 0b53b12 commit 49701e2

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

reproducer.F90

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,7 @@ pure function default_real_from_components(hyperparameters) result(training_conf
178178

179179
training_configuration%hyperparameters_ = hyperparameters
180180
training_configuration%file_t = file_t([ &
181-
string_t("{"), &
182-
training_configuration%hyperparameters_%to_json(), &
183-
string_t("}") &
181+
training_configuration%hyperparameters_%to_json() &
184182
])
185183
end function
186184

@@ -219,11 +217,10 @@ program test_suite_driver
219217
block
220218
type(training_configuration_t) from_json
221219
from_json = training_configuration_t(file_t( &
222-
[ string_t('{') &
223-
,string_t(' "hyperparameters": {') &
220+
[ &
221+
string_t(' "hyperparameters": {') &
224222
,string_t(' "learning rate" : 1.00000000,') &
225223
,string_t(' }') &
226-
,string_t('}') &
227224
] &
228225
))
229226
end block

0 commit comments

Comments
 (0)