title: building json for an array of serialized objects
body: <p>I'm using JavascriptSerializer with a custom JavascriptConverter to serialize two objects and return an array of these objects. I'm creating the array using Stringbuilder somewhat like this:</p>
  
  <pre><code>JavaScriptSerializer TheSerializer = new JavaScriptSerializer();
  TheSerializer.RegisterConverters(new JavaScriptConverter[] { new MyConverter()});
  
  TheStringBuilder.Append("[");
  TheStringBuilder.Append(TheSerializer.Serialize(FirstObject));
  TheStringBuilder.Append("],[");
  TheStringBuilder.Append(TheSerializer.Serialize(SecondObject));
  TheStringBuilder.Append("]");
  
  TheJsonToClient = TheStringBuilder.ToString();
  </code></pre>
  
  <p>The serialization and the custom converter work fine because in other parts of the code I'm using those and on the client JSON.parse work well for these objects.</p>
  
  <p>The problem is that when I'm reading the return string and calling <code>JSON.parse</code> on it, the deserialization fails on the client with an <code>Unexpected Token</code> error during the parsing.</p>
  
  <p>What am I doing wrong with the encoding that could cause this error when I'm deserializing the arrray?</p>
  
  <p>Thanks for your suggestions.</p>