added JSON.NET serialization attributes and converters.