串行并再次反序列化字符串“/”abc“给出了错误的结果。
以下单元测试失败:
public void TestSerializeAndDeserializeCorrectlyHandlesQuotes()
{
var data = "\"abc";
var result = JsonSerializer.SerializeToString(data);
var deserializedData = JsonSerializer.DeserializeFromString<string>(result);
Assert.That(deserializedData, Is.EqualTo(data));
}