Closed GHNewbiee closed 1 year ago
For the time being, I use string array ie
{
"table": [
"string1, 1.0",
"string2, 2.0",
"string3, 3.0",
]
}
You'd have to write code specific to your types, to populate the variables yourself. JSON-Fortran doesn't know anything about how to populate a custom user type (indeed, it's not possible to write such a library in Fortran).
Hi. The structure of the
.json
file is:The derived types are:
and the main file is:
I have tried
call file%get('table', data, found)
but unfortunately failed with the following error.Any advice/suggestion? Tia