fix trailing comma in post json