Changed serialization to use Json.NET.