linjackson78 / jstyleson

A python library to parse JSON with js-style comments.
MIT License
38 stars 4 forks source link

Handeling single line comment as the last line of json #3

Closed Yorozuya-san closed 4 years ago

Yorozuya-san commented 4 years ago

If a single line comment is the last line, then there is no \n to remove the comment. This PR makes sure that this case is handled.

Arcitec commented 3 years ago

@Yorozuya-san You should switch to JSON5 instead of this library, for much more robust parsing: https://github.com/linjackson78/jstyleson/issues/4