Resolves #49 - error messages for invalid json format are now more descriptive