added abililty to post json using curl