ServiceStack/ServiceStack.Text — Issue #81: DeserializeFromString Fails To Set String Properties After Dictionary<string,string> contains backslash
Author: tshak
Created: 2012-02-28 22:59:02+00:00
State: open

The following unit test fails using ServiceStack.Text 3.4.6.3017. I have narrowed it down to a trailing backslash in the Dictionary property:
```
[Fact]
public void TrailingBackslashBreaks()
{
var test = new Test
{
TestString = "Test",
Items = new Dictionary { { "foo", "bar\\" } }
};

var serialized = ServiceStack.Text.JsonSerializer.SerializeToString(test);
var deserialized = ServiceStack.Text.JsonSerializer.DeserializeFromString(serialized);

Assert.Equal("Test", deserialized.TestString); // deserialized.TestString is NULL
}

public class Test
{
public IDictionary Items { get; set; }
public string TestString { get; set; }
}
```