We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bde723 commit c33ecefCopy full SHA for c33ecef
src/MoonSharp.Interpreter.Tests/EndToEnd/JsonSerializationTests.cs
@@ -137,6 +137,13 @@ public void JsonObjectSerialization()
137
AssertTableValues(t);
138
}
139
140
+ [Test]
141
+ public void JsonEscapeSequences()
142
+ {
143
+ string json = "{ \"anEscapedString\": \"\\a\\r\\n\\b\\f\\n\\r\\t\\v\\\\\\\"\\'\\[\\]\\/\" }";
144
+ Table table = JsonTableConverter.JsonToTable(json);
145
+ Assert.AreEqual(table.Get("anEscapedString").String, "\a\n\b\f\n\r\t\v\\\"\'[]/");
146
+ }
147
148
149
0 commit comments