use curl to post json