You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I have a JSON file with a configuration stored, which is just a dump of an object I have previously made with nlohmann::json. The content look like this
{
"base_out_path":"/home/tools/minerva_out/.basis/",
"base_register_path":"/home/tools/minerva_out/.basis_registres/",
"max_registry_size":1073741824,
"out_path":"/home/tools/minerva_out",
"register_path":"/home/tools/minerva_out/.identifiers"
}```However, when I try to parse the data, I get this error: ```bashterminate called after throwing an instance of 'nlohmann::detail::parse_error'what(): [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literalAborted (core dumped)
This is similar to #1484. Can you do the tests discussed in the comments (#1484 (comment), #1484 (comment), #1484 (comment))? You already have done some of them. The rest might help us to understand what is causing this problem.
Sorry for slow response, haven't had internet.
I seems to be due to encoding of the file. The system for some reason used ISO-SOMETHING. I have swapped the system encoding to UTF-8 and it works.
Hey, I have a JSON file with a configuration stored, which is just a dump of an object I have previously made with nlohmann::json. The content look like this
and pretty
This is how I read the file
This is how I write the file
And this is the code where it fails:
I have not had problems with the read and write method before, so any idea as to why it fails?
I use clang 7 as my compiler
The text was updated successfully, but these errors were encountered: