Added some validation to the JSON parser.