Remove box.json generation, add error code