jsonfx/jsonfx — Issue #20: System.ExecutionEngineException when serializing IEnumerable<KeyValuePair<string, string>>
Author: Henr1k80
Created: 2012-02-21 10:20:24+00:00
State: open

using System.Collections.Generic;

namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
IEnumerable> jsonObject = new[] { new KeyValuePair("1", "1"), new KeyValuePair("2", "2") };
var writer = new JsonFx.Json.JsonWriter();
string jsonString = writer.Write(jsonObject);
}
}
}