User agents: fix JSON errors.