Skip to content

Commit c6c45ec

Browse files
mizadyjosesimoes
authored andcommitted
Added special character handling to StringConverter
Added special character handling for FormFeed, Backspace, Backslash, and Tab
1 parent ee1e8e1 commit c6c45ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nanoFramework.Json/Converters/StringConverter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ internal sealed class StringConverter : IConverter
1515
{
1616
{'\n', 'n'},
1717
{'\r', 'r'},
18+
{'\b', 'b' },
19+
{'\f', 'f' },
20+
{'\t', 't' },
21+
{'\\', '\\' },
1822
{'\"', '"' }
1923
};
2024

0 commit comments

Comments
 (0)