Avoids linting JSON code

So this commit is an attempt at fixing the issue that @remy had on #29.

The commit message pretty much explains what went wrong. And also, I suck at Python. I'm not sure why I can't just do a direct assignment instead of an `if`-statement (maybe my butter fingers are causing syntax errors).