jacobwilliams / json-fortran

A Modern Fortran JSON API
https://jacobwilliams.github.io/json-fortran/
Other
333 stars 83 forks source link

Parsing an integer #388

Closed jacobwilliams closed 5 years ago

jacobwilliams commented 5 years ago

If the structure being parsed is just an integer, for example:

json = json_file('42')

we get the error:

JSON-Fortran Exception: Error in parse_number: Unexpected end of file while parsing number.

According to jsonlint, this should be valid.