iPhone: Issue when adding json NSString into NSMutableArray
<p>I am setting a json output like below. It is a NSString.</p>

<pre><code>    MyNSString = {
    title = FirstOne;
    titleno = 95;
}

MyNSString = {
    title = SecondOne;
    titleno = 96;
}
</code></pre>

<p>I have to add like the above json multiple strings into an NSArray (or) NSMutableArray. I am trying to add in NSMutableArray. When i want to add like the above json string into an NSMutableArray, the output comes like below, with \n  .</p>

<pre><code>[outNSMutableArray addObject:[NSString stringWithFormat:@"%@", MyNSString] ];

    (
        "{\n  \"title\" : \"FirstOne\",\n  \"titleno\" : \"95\"\n}",
        "{\n  \"title\" : \"SecondOne\",\n  \"titleno\" : \"96\"\n}"
    )
</code></pre>

<p>I want this to be like below, without "\n \" added. </p>

<pre><code>[ {"title":"FirstOne","titleno":95},{"title":"SecondOne","titleno":96}]
</code></pre>

<p>How can i correct this? Could someone help?</p>
