jellyfin-server/MediaBrowser.Api/HttpHandlers/JsonHandler.cs
2012-07-21 14:39:47 -04:00

17 lines
451 B
C#

using System.IO;
using MediaBrowser.Common.Json;
using MediaBrowser.Common.Net.Handlers;
namespace MediaBrowser.Api.HttpHandlers
{
public abstract class JsonHandler : BaseJsonHandler
{
protected abstract object ObjectToSerialize { get; }
protected override void WriteResponseToOutputStream(Stream stream)
{
JsonSerializer.SerializeToStream(ObjectToSerialize, stream);
}
}
}