btk5h / skript-json

JSON support for Skript
MIT License
9 stars 1 forks source link

Feature request: last json parse error. #9

Open Snow-Pyon opened 6 years ago

Snow-Pyon commented 6 years ago

Why do I want this feature?

When passing a non-valid json string to the map json effect, this throws an exception telling you where it failed to parse which is pretty useful. The problem here is the fact that Skript users are not used to this format, they instantly think it is either a bug or something went horribly wrong when they see an exception when that isn't the case.

What am I suggesting?

As the title says, I am suggesting an expression that tells you the last json parsing error, this would be used in combination of the map json effect. This would contain the exception message making it more user-friendly.