change how http post is generated to post json