updated to post json