added parse exception catching for JSON support