ServiceStack/ServiceStack.Text — pull request #95 by danbarua (2012-03-16 09:54:31+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 as below:

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);
}

I have attached a failing test that shows when converting to Dictionary, the property names get wrapped in double quotes. I think this has changed recently - is this a bug or working as-designed?
-Dan