fix JSON quoting in CommonAPI