nlohmann / json

JSON for Modern C++
https://json.nlohmann.me
MIT License
42.4k stars 6.67k forks source link

Improve wording of parse_error exception #4037

Closed nlohmann closed 11 months ago

nlohmann commented 1 year ago
          @nlohmann This exact error happens enough that I'm wondering if there should be a more specific error message for it, such as "Error attempting to parse an empty input, check that your input string or stream contains the expected JSON."

Originally posted by @gregmarr in https://github.com/nlohmann/json/issues/4028#issuecomment-1540263739

haseeb-xd commented 1 year ago

I would like to work on this, Can you please tell me where can I add new parse_error exception message. Thanks

nlohmann commented 1 year ago

Please check the code where parse_error is thrown.

theevilone45 commented 1 year ago

Hey @nlohmann, can I do it? 😊

nlohmann commented 1 year ago

Hey @nlohmann, can I do it? 😊

Sure!

st17931 commented 1 year ago

Is it done ?? Or i can look into it? @nlohmann

nlohmann commented 1 year ago

See #4073. It's not done yet.

colbychaskell commented 1 year ago

Looks like the work on this fell through... I can work on this if needed.