title: How can I create a json string in objective C?
body: <p>I have to generate a json string dynamically and need to send to the server. Is any body know how to do it using <code>NSJSONSerialization</code> . Below is my string</p>
  <pre><code>{
      &quot;surveyid&quot;: &quot;Survey1&quot;,
      &quot;responsetime&quot;: &quot;dd/mm/yyyy hh:mm:ss&quot;,
      &quot;location&quot;: null,
      &quot;surveyresponses&quot;: [
          {
              &quot;questionid&quot;: &quot;111&quot;,
              &quot;responses&quot;: [
                  {
                      &quot;response&quot;: &quot;Good&quot;,
                      &quot;optionid&quot;: 1,
                      &quot;language&quot;: &quot;en&quot;
                  }
              ]
          },
          {
              &quot;questionid&quot;: &quot;112&quot;,
              &quot;responses&quot;: [
                  {
                      &quot;response&quot;: &quot;bad&quot;,
                      &quot;optionid&quot;: 2,
                      &quot;language&quot;: &quot;en&quot;
                  }
              ]
          }
  
      ]
  }
  </code></pre>
  <p>How can I create a string.json?</p>