Improvements

- improve error messages with a line number on (some?) JSON parsing errors
- bug fix: tolerance to extra parameters in tuples was depending on spacing