Make insert card set work with JSON