all: Handle JSON-level failures