Class JsonUtils
- Namespace
- Npp.DotNet.Plugin.Extensions
- Assembly
- Npp.DotNet.Plugin.dll
Utilities ported from the JSON Tools plugin.
public static class JsonUtils
- Inheritance
-
JsonUtils
- Inherited Members
Methods
CharToSb(StringBuilder, char)
appends the JSON representation of char c to a StringBuilder.
for most characters, this just means appending the character itself, but for example '\n' would become "\n", '\t' would become "\t",
and most other chars less than 32 would be appended as "\u00{char value in hex}" (e.g., '\x14' becomes "\u0014")
public static void CharToSb(StringBuilder sb, char c)
Parameters
sb
StringBuilderc
char
StrToString(string, bool)
the string representation of a JSON string if not quoted, this will not have the enclosing quotes a JSON string normally has
public static string StrToString(string s, bool quoted)