Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get a json exception periodically from json::parse for the same json #1263

Closed
tamarlev opened this issue Sep 28, 2018 · 8 comments
Closed
Labels
state: needs more info the author of the issue needs to provide more details

Comments

@tamarlev
Copy link

this is my json file:
{
"version": 1,
"path": "C:/Users/Lists",
"arr": [1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4]
}
why am I getting a json exception on this json?and why sometimes I get it and sometimes not?

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Sep 28, 2018
@nlohmann
Copy link
Owner

What code did you try? What was your error message?

@tamarlev
Copy link
Author

tamarlev commented Sep 29, 2018

This is the error message:
exception is [json.exception.parse_error.101] parse error at 119: syntax error - invalid literal; last read: '1 }tl'; expected end of input

I get it periodically every few runs for the same json file.

@nlohmann
Copy link
Owner

This means that you are trying to parse invalid JSON. The error message states that at byte 119 of the input, you have garbage like 1}tl which are unexpected. As this is not the JSON value above, I cannot say more about this.

@nlohmann
Copy link
Owner

nlohmann commented Oct 5, 2018

@tamarlev Do you need further information?

@nlohmann nlohmann closed this as completed Oct 9, 2018
@Vladddd46
Copy link

Всем привет, я Влад!

@grefrit
Copy link

grefrit commented Dec 27, 2021

Всем привет, я Влад!

Всем привет, я Влад!

1 similar comment
@mishase
Copy link

mishase commented Dec 27, 2021

Всем привет, я Влад!

Всем привет, я Влад!

@nlohmann
Copy link
Owner

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

5 participants