I\'m defining a PUT request with a JSON request body using libcurl in C.
This how I\'m doing it:
sprintf(jsonObj, \"\\\"name\\\" : \\\"%s\\\", \\
I used json-c for encoding and decoding jsons and it worked very well. The documentation is also easy to understand. https://linuxprograms.wordpress.com/2010/05/20/json-c-libjson-tutorial/