fixed issue with json data in post