title: C : struct to json string
body: <p>I want to convert struct to json string, is it possible?
  for example:</p>
  
  <pre><code>struct data{
     int a;
     int b;
  }
  struct data myData;
  myData.a = 1;
  myData.b = 2;
  
  char* structToString(struct data myData){
      ......
  }
  
  output:
       myData{
           a : 1,
           b : 2,
       }
  </code></pre>
  
  <p>How can I implement this function(structToString)?</p>