Better handling of incorrect JSON objects

We need to reconsider the idea of using JSON and allow it to be in the wrong format!