post json cleanup