ServiceStack/ServiceStack.Text — pull request #91 by danbarua (2012-03-13 11:23:49+00:00)
Title: Serializing to Dictionary<string,string> double quotes property names

I noticed a regression in ServiceStack.Redis - RedisClient.StoreAsHash(T entity) and RedisClient.GetFromHash(object id) both rely on objects surviving serialization roundtrips via Dictionary, this is demonstrated by the failing test in this pull request.

public T GetFromHash(object id)
{
var key = IdUtils.CreateUrn(id);
return
GetAllEntriesFromHash(key).ToJson().FromJson();
}

public void StoreAsHash(T entity)
{
var key = string.Format(entity.CreateUrn());
SetRangeInHash(key, entity.ToJson().To>());
RegisterTypeId(entity);
}

Is this a bug or works-as-designed?
-Dan