The curl error is due to braces {} and square brackets [] being special curl globbing characters. Use the -g option to turn off globbing and you should be fine.
Same issue as this post: How to PUT a json object with an array using curlHow to PUT a json object with an array using curl