using Newtonsoft.Json.Serialization;
using System.Collections.Generic;
public static void Main()
Console.WriteLine("reader.SupportMultipleContent=true with MemoryTraceReader");
string json = @"{ 'name': 'Admin' }{ 'name': 'Publisher' }";
IList<Role> roles = new List<Role>();
JsonTextReader reader = new JsonTextReader(new StringReader(json));
reader.SupportMultipleContent = true;
ITraceWriter traceWriter = new MemoryTraceWriter();
JsonSerializer serializer = new JsonSerializer();
serializer.TraceWriter = traceWriter;
Role role = serializer.Deserialize<Role>(reader);
foreach (Role role in roles)
Console.WriteLine(role.Name);
public string Name {get;set;}