JsonUtils
Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class JsonUtils
Fields
MaxInteger
View Source
Declaration
public const long MaxInteger = 9007199254740992L
MinInteger
View Source
Declaration
public const long MinInteger = -9007199254740992L
EscapeChar
View Source
Declaration
public const char EscapeChar = '\\'
QuoteChar
View Source
Declaration
public const char QuoteChar = '"'
Null
View Source
Declaration
public const string Null = "null"
True
View Source
Declaration
public const string True = "true"
False
View Source
Declaration
public const string False = "false"
SpaceChar
View Source
Declaration
public const char SpaceChar = ' '
TabChar
View Source
Declaration
public const char TabChar = '\t'
CarriageReturnChar
View Source
Declaration
public const char CarriageReturnChar = '\r'
LineFeedChar
View Source
Declaration
public const char LineFeedChar = '\n'
FormFeedChar
View Source
Declaration
public const char FormFeedChar = '\f'
BackspaceChar
View Source
Declaration
public const char BackspaceChar = '\b'
WhiteSpaceChars
View Source
Declaration
public static readonly char[] WhiteSpaceChars
Methods
IsWhiteSpace(Char)
View Source
Declaration
public static bool IsWhiteSpace(char c)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Char | c |
WriteString(TextWriter, String)
View Source
Declaration
public static void WriteString(TextWriter writer, string value)
Parameters
Type | Name |
---|---|
System.IO.TextWriter | writer |
System.String | value |
IntToHex(Int32, Char[])
View Source
Declaration
public static void IntToHex(int intValue, char[] hex)
Parameters
Type | Name |
---|---|
System.Int32 | intValue |
System.Char[] | hex |
IsJsObject(String)
View Source
Declaration
public static bool IsJsObject(string value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | value |
IsJsObject(ReadOnlySpan<Char>)
View Source
Declaration
public static bool IsJsObject(ReadOnlySpan<char> value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |
IsJsArray(String)
View Source
Declaration
public static bool IsJsArray(string value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | value |
IsJsArray(ReadOnlySpan<Char>)
View Source
Declaration
public static bool IsJsArray(ReadOnlySpan<char> value)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ReadOnlySpan<System.Char> | value |