title: calling a json webservice from C using curl and json-c
body: <p>I need to call a restful webservice that accepts json object. 
  I was able to find libraries like <strong>libcurl</strong> to call a webservice from C application. I was also able to find libraries like <strong>json-c</strong> to create a json object in C.</p>
  
  <p>libcurl accepts a string and posts it to the given webservice url. Is there anyway that I can post the json object created by using json-c libraries and call the webservice using the curl libraries.</p>
  
  <p>Please let me know if there is any other library that will allow me both, to create a json object and call a webservice or any other alternate solution.</p>
  
  <p>Thank you for the help in advance.</p>