remove debug stuff from json