title: JSON serialization of array with polymorphic objects
body: <p>Is it possible with .NET standard JavascriptSerializer/JsonDataContractSerializer or external parsers, to serialize objects array using a wrapper approach including the object type?</p>
  
  <p>For example, to generate this JSON from a List:</p>
  
  <pre><code>[{ 'dog': { ...dog properties... } },
   { 'cat': { ...cat properties... } }]
  </code></pre>
  
  <p>instead of typical:</p>
  
  <pre><code>[{ ...dog properties... },
   { ...cat properties... }]
  </code></pre>
  
  <p>This is doable in Java with Jackson using JsonTypeInfo.As.WRAPPER_OBJECT attribute.</p>