pass object in curl body code example
Example 1: post json array data curl
curl -H 'Content-Type: application/json' -H 'Accept: application/json' -X PUT -d '{"tags":["tag1","tag2"],"question":"Which band?","answers":[{"id":"a0","answer":"Answer1"},{"id":"a1","answer":"answer2"}]}' http://example.com/service`
Example 2: curl post
curl --data "param1=value1¶m2=value2" https://example.com/post