Skip to main content

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
TypeName
System.Charc

WriteString(TextWriter, String)

View Source
Declaration
public static void WriteString(TextWriter writer, string value)
Parameters
TypeName
System.IO.TextWriterwriter
System.Stringvalue

IntToHex(Int32, Char[])

View Source
Declaration
public static void IntToHex(int intValue, char[] hex)
Parameters
TypeName
System.Int32intValue
System.Char[]hex

IsJsObject(String)

View Source
Declaration
public static bool IsJsObject(string value)
Returns

System.Boolean

Parameters
TypeName
System.Stringvalue

IsJsObject(ReadOnlySpan<Char>)

View Source
Declaration
public static bool IsJsObject(ReadOnlySpan<char> value)
Returns

System.Boolean

Parameters
TypeName
ReadOnlySpan<System.Char>value

IsJsArray(String)

View Source
Declaration
public static bool IsJsArray(string value)
Returns

System.Boolean

Parameters
TypeName
System.Stringvalue

IsJsArray(ReadOnlySpan<Char>)

View Source
Declaration
public static bool IsJsArray(ReadOnlySpan<char> value)
Returns

System.Boolean

Parameters
TypeName
ReadOnlySpan<System.Char>value