/// <summary> /// Initializes a new instance of the <see cref="FastJsonDeserializer" /> class. /// </summary> /// <param name="data">The data.</param> public FastJsonSerializer(TestObject data) { this.Data = data; }
/// <summary> /// Initializes a new instance of the <see cref="JsonNetDeserializer"/> class. /// </summary> /// <param name="data">The data.</param> public JsonNetDeserializer(TestObject data) { this.Data = JsonConvert.SerializeObject(data, typeof(TestObject), new JsonSerializerSettings() { DateFormatHandling = DateFormatHandling.IsoDateFormat }); }
/// <summary> /// Initializes a new instance of the <see cref="JsonFxDeserializer" /> class. /// </summary> /// <param name="data">The data.</param> public JsonFxSerializer(TestObject data) { this.Data = data; this.Writer = new JsonWriter(); }
/// <summary> /// Initializes a new instance of the <see cref="JsonFxDeserializer"/> class. /// </summary> /// <param name="data">The data.</param> public JsonFxDeserializer(TestObject data) { this.Data = new JsonWriter().Write(data); this.Reader = new JsonReader(); }
/// <summary> /// Initializes a new instance of the <see cref="JayRockDeserializer"/> class. /// </summary> /// <param name="data">The data.</param> public JayRockDeserializer(TestObject data) { this.Data = Jayrock.Json.Conversion.JsonConvert.ExportToString(data); }
/// <summary> /// Initializes a new instance of the <see cref="JsonNetSerializer" /> class. /// </summary> /// <param name="data">The data.</param> public JsonNetSerializer(TestObject data) { this.Data = data; }
/// <summary> /// Initializes a new instance of the <see cref="JayRockSerializer" /> class. /// </summary> /// <param name="data">The data.</param> public JayRockSerializer(TestObject data) { this.Data = data; }