removing misplaced JSON operations
clarifying an exception state. still incorrect, needs a more interesting condition