Modified JsonHelper class for proper handling of JsonExceptions.