json format cleanup