Andy,
JSON requires double quotes for strings as shown in Armon's example,
not single quotes. So rather than
-d '{'key':'5b0c2ba43cb6a203535b4ae9e18fbffa98865f90b3ec7537f4cd0629940f595103'}'
you need
-d '{"key":"5b0c2ba43cb6a203535b4ae9e18fbffa98865f90b3ec7537f4cd0629940f595103"}'
You need to keep the single quotes around the entire string so that
your shell will pass it in to curl verbatim.
--Jeff
>
https://groups.google.com/d/msgid/vault-tool/98c6c5bb-99cf-448e-8085-817f543bb4c5%40googlegroups.com.