KGy SOFT

JsonValueExtensions Class

KGy SOFT JSON Libraries Help
Provides extension methods for JsonValue conversions.
Inheritance Hierarchy

SystemObject
  KGySoft.JsonJsonValueExtensions

Namespace:  KGySoft.Json
Assembly:  KGySoft.Json (in KGySoft.Json.dll) Version: 2.0.0
Syntax

public static class JsonValueExtensions

The JsonValueExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberAsBigInteger
Gets the specified JsonValue as a BigInteger value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to BigInteger; otherwise, returns .
Public methodStatic memberAsBoolean
Gets the specified JsonValue as a Boolean value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Boolean; otherwise, returns . This method allows interpreting numeric values as booleans where nonzero values are .
Public methodStatic memberAsByte
Gets the specified JsonValue as a Byte value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Byte; otherwise, returns .
Public methodStatic memberAsDateOnly(JsonValue, String)
Gets the specified JsonValue as a DateOnly value using the specified format if Type property of the specified json parameter is String and it can be converted to DateOnly; otherwise, returns .
Public methodStatic memberAsDateOnly(JsonValue, JsonDateTimeFormat, JsonValueType)
Gets the specified JsonValue as a DateOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns .
Public methodStatic memberAsDateTime(JsonValue, String, NullableDateTimeKind)
Gets the specified JsonValue as a DateTime value using the specified format if Type property of the specified json parameter is String and it can be converted to DateTime; otherwise, returns .
Public methodStatic memberAsDateTime(JsonValue, JsonDateTimeFormat, NullableDateTimeKind, JsonValueType)
Gets the specified JsonValue as a DateTime value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns .
Public methodStatic memberAsDateTimeOffset(JsonValue, String)
Gets the specified JsonValue as a DateTimeOffset value using the specified format if Type property of the specified json parameter is String and it can be converted to DateTimeOffset; otherwise, returns .
Public methodStatic memberAsDateTimeOffset(JsonValue, JsonDateTimeFormat, JsonValueType)
Gets the specified JsonValue as a DateTimeOffset value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTimeOffset; otherwise, returns .
Public methodStatic memberAsDecimal
Gets the specified JsonValue as a Decimal value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Decimal; otherwise, returns .
Public methodStatic memberAsDouble
Gets the specified JsonValue as a Double value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Double; otherwise, returns .
Public methodStatic memberAsEnumTEnum(JsonValue, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns .
Public methodStatic memberAsEnumTEnum(JsonValue, Boolean, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns .
Public methodStatic memberAsEnumTEnum(JsonValue, Boolean, String, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns .
Public methodStatic memberAsGuid
Gets the specified JsonValue as a Guid value if Type property of the specified json parameter is String.
Public methodStatic memberAsHalf
Gets the specified JsonValue as a Half value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Half; otherwise, returns .
Public methodStatic memberAsInt16
Gets the specified JsonValue as an Int16 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int16; otherwise, returns .
Public methodStatic memberAsInt32
Gets the specified JsonValue as an Int32 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int32; otherwise, returns .
Public methodStatic memberAsInt64
Gets the specified JsonValue as an Int64 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int64; otherwise, returns .
Public methodStatic memberAsSByte
Gets the specified JsonValue as an SByte value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to SByte; otherwise, returns .
Public methodStatic memberAsSingle
Gets the specified JsonValue as a Single value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Single; otherwise, returns .
Public methodStatic memberAsString
Gets the specified JsonValue as a String value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to String; otherwise, returns .
Public methodStatic memberAsTimeOnly
Gets the specified JsonValue as a TimeOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeOnly; otherwise, returns .
Public methodStatic memberAsTimeSpan
Gets the specified JsonValue as a TimeSpan value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeSpan; otherwise, returns .
Public methodStatic memberAsUInt16
Gets the specified JsonValue as an UInt16 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt16; otherwise, returns .
Public methodStatic memberAsUInt32
Gets the specified JsonValue as an UInt32 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt32; otherwise, returns .
Public methodStatic memberAsUInt64
Gets the specified JsonValue as an UInt64 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt64; otherwise, returns .
Public methodStatic memberGetBigIntegerOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a BigInteger value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to BigInteger; otherwise, returns 0.
Public methodStatic memberGetBigIntegerOrDefault(JsonValue, BigInteger, JsonValueType)
Gets the specified JsonValue as a BigInteger value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to BigInteger; otherwise, returns defaultValue.
Public methodStatic memberGetBooleanOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a Boolean value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Boolean; otherwise, returns , which is the default value of Boolean. This method allows interpreting numeric values as booleans where nonzero values are .
Public methodStatic memberGetBooleanOrDefault(JsonValue, Boolean, JsonValueType)
Gets the specified JsonValue as a Boolean value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Boolean; otherwise, returns defaultValue. This method allows interpreting numeric values as booleans where nonzero values are .
Public methodStatic memberGetByteOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a Byte value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Byte; otherwise, returns 0.
Public methodStatic memberGetByteOrDefault(JsonValue, Byte, JsonValueType)
Gets the specified JsonValue as a Byte value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Byte; otherwise, returns defaultValue.
Public methodStatic memberGetDateOnlyOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a DateOnly value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns DateOnly.MinValue, which is the default value of DateOnly. The actual format is attempted to be auto detected. If you know exact format use the other GetDateOnlyOrDefault overloads.
Public methodStatic memberGetDateOnlyOrDefault(JsonValue, JsonDateTimeFormat, JsonValueType)
Gets the specified JsonValue as a DateOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns DateOnly.MinValue, which is the default value of DateOnly.
Public methodStatic memberGetDateOnlyOrDefault(JsonValue, DateOnly, JsonValueType)
Gets the specified JsonValue as a DateOnly value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns defaultValue. The actual format is attempted to be auto detected. If you know exact format use the other GetDateOnlyOrDefault overloads.
Public methodStatic memberGetDateOnlyOrDefault(JsonValue, String, DateOnly)
Gets the specified JsonValue as a DateOnly value using the specified format if Type property of the specified json parameter is String and it can be converted to DateOnly; otherwise, returns defaultValue.
Public methodStatic memberGetDateOnlyOrDefault(JsonValue, JsonDateTimeFormat, DateOnly, JsonValueType)
Gets the specified JsonValue as a DateOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateOnly; otherwise, returns defaultValue.
Public methodStatic memberGetDateTimeOffsetOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a DateTimeOffset value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTimeOffset; otherwise, returns DateTimeOffset.MinValue, which is the default value of DateTimeOffset. The actual format is attempted to be auto detected. If you know exact format use the other GetDateTimeOffsetOrDefault overloads.
Public methodStatic memberGetDateTimeOffsetOrDefault(JsonValue, JsonDateTimeFormat, JsonValueType)
Gets the specified JsonValue as a DateTimeOffset value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTimeOffset; otherwise, returns DateTimeOffset.MinValue, which is the default value of DateTimeOffset.
Public methodStatic memberGetDateTimeOffsetOrDefault(JsonValue, DateTimeOffset, JsonValueType)
Gets the specified JsonValue as a DateTimeOffset value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTimeOffset; otherwise, returns defaultValue. The actual format is attempted to be auto detected. If you know exact format use the other GetDateTimeOffsetOrDefault overloads.
Public methodStatic memberGetDateTimeOffsetOrDefault(JsonValue, String, DateTimeOffset)
Gets the specified JsonValue as a DateTimeOffset value using the specified format if Type property of the specified json parameter is String and it can be converted to DateTimeOffset; otherwise, returns defaultValue.
Public methodStatic memberGetDateTimeOffsetOrDefault(JsonValue, JsonDateTimeFormat, DateTimeOffset, JsonValueType)
Gets the specified JsonValue as a DateTimeOffset value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTimeOffset; otherwise, returns defaultValue.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a DateTime value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns DateTime.MinValue, which is the default value of DateTime. The actual format is attempted to be auto detected. If you know exact format use the other GetDateTimeOrDefault overloads.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, JsonDateTimeFormat, JsonValueType)
Gets the specified JsonValue as a DateTime value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns DateTime.MinValue, which is the default value of DateTime.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, NullableDateTimeKind, JsonValueType)
Gets the specified JsonValue as a DateTime value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns DateTime.MinValue, which is the default value of DateTime. The actual format is attempted to be auto detected. If you know exact format use the other GetDateTimeOrDefault overloads.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, String, NullableDateTimeKind)
Gets the specified JsonValue as a DateTime value using the specified format if Type property of the specified json parameter is String and it can be converted to DateTime; otherwise, returns DateTime.MinValue, which is the default value of DateTime.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, JsonDateTimeFormat, NullableDateTimeKind, JsonValueType)
Gets the specified JsonValue as a DateTime value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns DateTime.MinValue, which is the default value of DateTime.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, DateTime, NullableDateTimeKind, JsonValueType)
Gets the specified JsonValue as a DateTime value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns defaultValue. The actual format is attempted to be auto detected. If you know exact format use the other GetDateTimeOrDefault overloads.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, String, DateTime, NullableDateTimeKind)
Gets the specified JsonValue as a DateTime value using the specified format if Type property of the specified json parameter is String and it can be converted to DateTime; otherwise, returns defaultValue.
Public methodStatic memberGetDateTimeOrDefault(JsonValue, JsonDateTimeFormat, DateTime, NullableDateTimeKind, JsonValueType)
Gets the specified JsonValue as a DateTime value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to DateTime; otherwise, returns defaultValue.
Public methodStatic memberGetDecimalOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a Decimal value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Decimal; otherwise, returns 0.0.
Public methodStatic memberGetDecimalOrDefault(JsonValue, Decimal, JsonValueType)
Gets the specified JsonValue as a Decimal value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Decimal; otherwise, returns defaultValue.
Public methodStatic memberGetDoubleOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a Double value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Double; otherwise, returns 0.0.
Public methodStatic memberGetDoubleOrDefault(JsonValue, Double, JsonValueType)
Gets the specified JsonValue as a Double value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Double; otherwise, returns defaultValue.
Public methodStatic memberGetEnumOrDefaultTEnum(JsonValue, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns the default value of TEnum.
Public methodStatic memberGetEnumOrDefaultTEnum(JsonValue, TEnum, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns defaultValue.
Public methodStatic memberGetEnumOrDefaultTEnum(JsonValue, Boolean, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns the default value of TEnum.
Public methodStatic memberGetEnumOrDefaultTEnum(JsonValue, Boolean, TEnum, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns defaultValue.
Public methodStatic memberGetEnumOrDefaultTEnum(JsonValue, Boolean, String, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns the default value of TEnum.
Public methodStatic memberGetEnumOrDefaultTEnum(JsonValue, Boolean, TEnum, String, JsonValueType)
Gets the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TEnum; otherwise, returns defaultValue.
Public methodStatic memberGetGuidOrDefault
Gets the specified JsonValue as a Guid value if Type property of the specified json parameter is String and it can be converted to Guid; otherwise, returns defaultValue.
Public methodStatic memberGetHalfOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a Half value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Half; otherwise, returns 0.0.
Public methodStatic memberGetHalfOrDefault(JsonValue, Half, JsonValueType)
Gets the specified JsonValue as a Half value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Half; otherwise, returns defaultValue.
Public methodStatic memberGetInt16OrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an Int16 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int16; otherwise, returns 0.
Public methodStatic memberGetInt16OrDefault(JsonValue, Int16, JsonValueType)
Gets the specified JsonValue as an Int16 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int16; otherwise, returns defaultValue.
Public methodStatic memberGetInt32OrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an Int32 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int32; otherwise, returns 0.
Public methodStatic memberGetInt32OrDefault(JsonValue, Int32, JsonValueType)
Gets the specified JsonValue as an Int32 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int32; otherwise, returns defaultValue.
Public methodStatic memberGetInt64OrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an Int64 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int64; otherwise, returns 0.
Public methodStatic memberGetInt64OrDefault(JsonValue, Int64, JsonValueType)
Gets the specified JsonValue as an Int64 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Int64; otherwise, returns defaultValue.
Public methodStatic memberGetSByteOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an SByte value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to SByte; otherwise, returns 0.
Public methodStatic memberGetSByteOrDefault(JsonValue, SByte, JsonValueType)
Gets the specified JsonValue as an SByte value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to SByte; otherwise, returns defaultValue.
Public methodStatic memberGetSingleOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a Single value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Single; otherwise, returns 0.0.
Public methodStatic memberGetSingleOrDefault(JsonValue, Single, JsonValueType)
Gets the specified JsonValue as a Single value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to Single; otherwise, returns defaultValue.
Public methodStatic memberGetStringOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a String value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to String; otherwise, returns .
Public methodStatic memberGetStringOrDefault(JsonValue, String, JsonValueType)
Gets the specified JsonValue as a String value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to String; otherwise, returns defaultValue.
Public methodStatic memberGetTimeOnlyOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a TimeOnly value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeOnly; otherwise, returns TimeOnly.MinValue, which is the default value of TimeOnly. The actual format is attempted to be auto detected. If you know exact format use the GetTimeOnlyOrDefault(JsonValue, JsonTimeFormat, TimeOnly, JsonValueType) overload instead.
Public methodStatic memberGetTimeOnlyOrDefault(JsonValue, JsonTimeFormat, JsonValueType)
Gets the specified JsonValue as a TimeOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeOnly; otherwise, returns TimeOnly.MinValue, which is the default value of TimeOnly.
Public methodStatic memberGetTimeOnlyOrDefault(JsonValue, TimeOnly, JsonValueType)
Gets the specified JsonValue as a TimeOnly value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeOnly; otherwise, returns defaultValue. The actual format is attempted to be auto detected. If you know exact format use the GetTimeOnlyOrDefault(JsonValue, JsonTimeFormat, TimeOnly, JsonValueType) overload instead.
Public methodStatic memberGetTimeOnlyOrDefault(JsonValue, JsonTimeFormat, TimeOnly, JsonValueType)
Gets the specified JsonValue as a TimeOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeOnly; otherwise, returns defaultValue.
Public methodStatic memberGetTimeSpanOrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as a TimeSpan value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeSpan; otherwise, returns TimeSpan.Zero, which is the default value of TimeSpan. The actual format is attempted to be auto detected. If you know exact format use the GetTimeSpanOrDefault(JsonValue, JsonTimeFormat, TimeSpan, JsonValueType) overload instead.
Public methodStatic memberGetTimeSpanOrDefault(JsonValue, JsonTimeFormat, JsonValueType)
Gets the specified JsonValue as a TimeSpan value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeSpan; otherwise, returns TimeSpan.Zero, which is the default value of TimeSpan.
Public methodStatic memberGetTimeSpanOrDefault(JsonValue, TimeSpan, JsonValueType)
Gets the specified JsonValue as a TimeSpan value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeSpan; otherwise, returns defaultValue. The actual format is attempted to be auto detected. If you know exact format use the GetTimeSpanOrDefault(JsonValue, JsonTimeFormat, TimeSpan, JsonValueType) overload instead.
Public methodStatic memberGetTimeSpanOrDefault(JsonValue, JsonTimeFormat, TimeSpan, JsonValueType)
Gets the specified JsonValue as a TimeSpan value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to TimeSpan; otherwise, returns defaultValue.
Public methodStatic memberGetUInt16OrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an UInt16 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt16; otherwise, returns 0.
Public methodStatic memberGetUInt16OrDefault(JsonValue, UInt16, JsonValueType)
Gets the specified JsonValue as an UInt16 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt16; otherwise, returns defaultValue.
Public methodStatic memberGetUInt32OrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an UInt32 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt32; otherwise, returns 0.
Public methodStatic memberGetUInt32OrDefault(JsonValue, UInt32, JsonValueType)
Gets the specified JsonValue as an UInt32 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt32; otherwise, returns defaultValue.
Public methodStatic memberGetUInt64OrDefault(JsonValue, JsonValueType)
Gets the specified JsonValue as an UInt64 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt64; otherwise, returns 0.
Public methodStatic memberGetUInt64OrDefault(JsonValue, UInt64, JsonValueType)
Gets the specified JsonValue as an UInt64 value if expectedType is Undefined or matches the Type property of the specified json parameter and it can be converted to UInt64; otherwise, returns defaultValue.
Public methodStatic memberToJson(Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Guid)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableBoolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableGuid)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(BigInteger, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(Byte, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(DateOnly, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(DateTime, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(DateTimeOffset, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Decimal, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(Double, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Half, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Int16, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Int32, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Int64, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(NullableByte, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDateOnly, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDateTime, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDateTimeOffset, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDecimal, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(NullableDouble, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableHalf, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableInt16, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableInt32, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableInt64, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(NullableBigInteger, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(NullableSByte, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableSingle, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableUInt16, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableUInt32, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableUInt64, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(SByte, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(Single, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(UInt16, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(UInt32, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(UInt64, Boolean)
Converts the specified value to JsonValue. To prevent losing precision the default value of the asString parameter is in this overload.
See the Remarks section of the AsNumber property for details.
Public methodStatic memberToJson(DateOnly, JsonDateTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(DateTime, JsonDateTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(DateTimeOffset, JsonDateTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDateOnly, JsonDateTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDateTime, JsonDateTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableDateTimeOffset, JsonDateTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableTimeOnly, JsonTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(NullableTimeSpan, JsonTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(TimeOnly, JsonTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJson(TimeSpan, JsonTimeFormat, Boolean)
Converts the specified value to JsonValue.
Public methodStatic memberToJsonTEnum(NullableTEnum, JsonEnumFormat, String)
Converts the specified value to JsonValue.
Public methodStatic memberToJsonTEnum(TEnum, JsonEnumFormat, String)
Converts the specified value to JsonValue.
Public methodStatic memberTryGetBigInteger
Tries to get the specified JsonValue as a BigInteger value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetBoolean
Tries to get the specified JsonValue as a Boolean value if expectedType is Undefined or matches the Type property of the specified json parameter. This method allows interpreting numeric values as booleans where nonzero values are .
Public methodStatic memberTryGetByte
Tries to get the specified JsonValue as a Byte value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetDateOnly(JsonValue, DateOnly, JsonValueType)
Tries to get the specified JsonValue as a DateOnly value if expectedType is Undefined or matches the Type property of the specified json parameter. The actual format is attempted to be auto detected. If you know exact format use the other TryGetDateOnly overloads.
Public methodStatic memberTryGetDateOnly(JsonValue, String, DateOnly)
Tries to get the specified JsonValue as a DateOnly value using the specified format if Type property of the specified json parameter is String.
Public methodStatic memberTryGetDateOnly(JsonValue, JsonDateTimeFormat, DateOnly, JsonValueType)
Tries to get the specified JsonValue as a DateOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetDateTime(JsonValue, DateTime, NullableDateTimeKind, JsonValueType)
Tries to get the specified JsonValue as a DateTime value if expectedType is Undefined or matches the Type property of the specified json parameter. The actual format is attempted to be auto detected. If you know exact format use the other TryGetDateTime overloads.
Public methodStatic memberTryGetDateTime(JsonValue, String, DateTime, NullableDateTimeKind)
Tries to get the specified JsonValue as a DateTime value using the specified format if Type property of the specified json parameter is String.
Public methodStatic memberTryGetDateTime(JsonValue, JsonDateTimeFormat, DateTime, NullableDateTimeKind, JsonValueType)
Tries to get the specified JsonValue as a DateTime value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetDateTimeOffset(JsonValue, DateTimeOffset, JsonValueType)
Tries to get the specified JsonValue as a DateTimeOffset value if expectedType is Undefined or matches the Type property of the specified json parameter. The actual format is attempted to be auto detected. If you know exact format use the other TryGetDateTimeOffset overloads.
Public methodStatic memberTryGetDateTimeOffset(JsonValue, String, DateTimeOffset)
Tries to get the specified JsonValue as a DateTimeOffset value using the specified format if Type property of the specified json parameter is String.
Public methodStatic memberTryGetDateTimeOffset(JsonValue, JsonDateTimeFormat, DateTimeOffset, JsonValueType)
Tries to get the specified JsonValue as a DateTimeOffset value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetDecimal
Tries to get the specified JsonValue as a Decimal value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetDouble
Tries to get the specified JsonValue as a Double value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetEnumTEnum(JsonValue, TEnum, JsonValueType)
Tries to get the specified JsonValue as a TEnum value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetEnumTEnum(JsonValue, Boolean, TEnum, JsonValueType)
Tries to get the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetEnumTEnum(JsonValue, Boolean, TEnum, String, JsonValueType)
Tries to get the specified JsonValue as TEnum if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetGuid
Tries to get the specified JsonValue as a Guid value if Type property of the specified json parameter is String.
Public methodStatic memberTryGetHalf
Tries to get the specified JsonValue as a Half value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetInt16
Tries to get the specified JsonValue as an Int16 value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetInt32
Tries to get the specified JsonValue as an Int32 value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetInt64
Tries to get the specified JsonValue as an Int64 value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetSByte
Tries to get the specified JsonValue as an SByte value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetSingle
Tries to get the specified JsonValue as a Single value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetString
Tries to get the specified JsonValue as a String value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetTimeOnly(JsonValue, TimeOnly, JsonValueType)
Tries to get the specified JsonValue as a TimeOnly value if expectedType is Undefined or matches the Type property of the specified json parameter. The actual format is attempted to be auto detected. If you know exact format use the TryGetTimeOnly(JsonValue, JsonTimeFormat, TimeOnly, JsonValueType) overload instead.
Public methodStatic memberTryGetTimeOnly(JsonValue, JsonTimeFormat, TimeOnly, JsonValueType)
Tries to get the specified JsonValue as a TimeOnly value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetTimeSpan(JsonValue, TimeSpan, JsonValueType)
Tries to get the specified JsonValue as a TimeSpan value if expectedType is Undefined or matches the Type property of the specified json parameter. The actual format is attempted to be auto detected. If you know exact format use the TryGetTimeSpan(JsonValue, JsonTimeFormat, TimeSpan, JsonValueType) overload instead.
Public methodStatic memberTryGetTimeSpan(JsonValue, JsonTimeFormat, TimeSpan, JsonValueType)
Tries to get the specified JsonValue as a TimeSpan value using the specified format if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetUInt16
Tries to get the specified JsonValue as an UInt16 value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetUInt32
Tries to get the specified JsonValue as an UInt32 value if expectedType is Undefined or matches the Type property of the specified json parameter.
Public methodStatic memberTryGetUInt64
Tries to get the specified JsonValue as an UInt64 value if expectedType is Undefined or matches the Type property of the specified json parameter.
Top
See Also

Reference