When working on the JSON file, you sometimes make small mistakes like forgetting a comma, trying out comments (which don't work). All that tilemaker says is
Invalid JSON file.
It would be helpful if there is a better error message that actually helps in debugging the style file.