Encode the JSON payload so we can pass it to the command line or URL