Added a warning for malformed json

This refs #26. For the majority of us, this error is thrown when we use malformed JSON. The message is really confusing. Maybe we could work something out along these lines: just adding a warning at the end of the error essage.