// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.md in the project root for license information.
using System;
using System.IO;
namespace Microsoft.AspNet.SignalR.Json
{
///
/// Used to serialize and deserialize outgoing/incoming data.
///
public interface IJsonSerializer
{
///
/// Serializes the specified object to a .
///
/// The object to serialize
/// The to serialize the object to.
void Serialize(object value, TextWriter writer);
///
/// Deserializes the JSON to a .NET object.
///
/// The to deserialize the object from.
/// The of object being deserialized.
/// The deserialized object from the JSON string.
object Parse(TextReader reader, Type targetType);
}
}