JsonValueExtensionsToJson Method

Overload List

ToJson(Boolean) Converts the specified value to JsonValue.
ToJson(Guid) Converts the specified value to JsonValue.
ToJson(NullableBoolean) Converts the specified value to JsonValue.
ToJson(NullableGuid) Converts the specified value to JsonValue.
ToJson(String) Converts the specified value to JsonValue.
ToJson(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.
ToJson(Byte, Boolean) Converts the specified value to JsonValue.
ToJson(DateOnly, String) Converts the specified value to JsonValue.
ToJson(DateTime, String) Converts the specified value to JsonValue.
ToJson(DateTimeOffset, String) Converts the specified value to JsonValue.
ToJson(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.
ToJson(Double, Boolean) Converts the specified value to JsonValue.
ToJson(Half, Boolean) Converts the specified value to JsonValue.
ToJson(Int128, 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.
ToJson(Int16, Boolean) Converts the specified value to JsonValue.
ToJson(Int32, Boolean) Converts the specified value to JsonValue.
ToJson(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.
ToJson(NullableByte, Boolean) Converts the specified value to JsonValue.
ToJson(NullableDateOnly, String) Converts the specified value to JsonValue.
ToJson(NullableDateTime, String) Converts the specified value to JsonValue.
ToJson(NullableDateTimeOffset, String) Converts the specified value to JsonValue.
ToJson(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.
ToJson(NullableDouble, Boolean) Converts the specified value to JsonValue.
ToJson(NullableHalf, Boolean) Converts the specified value to JsonValue.
ToJson(NullableInt128, 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.
ToJson(NullableInt16, Boolean) Converts the specified value to JsonValue.
ToJson(NullableInt32, Boolean) Converts the specified value to JsonValue.
ToJson(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.
ToJson(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.
ToJson(NullableSByte, Boolean) Converts the specified value to JsonValue.
ToJson(NullableSingle, Boolean) Converts the specified value to JsonValue.
ToJson(NullableUInt128, 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.
ToJson(NullableUInt16, Boolean) Converts the specified value to JsonValue.
ToJson(NullableUInt32, Boolean) Converts the specified value to JsonValue.
ToJson(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.
ToJson(SByte, Boolean) Converts the specified value to JsonValue.
ToJson(Single, Boolean) Converts the specified value to JsonValue.
ToJson(UInt128, 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.
ToJson(UInt16, Boolean) Converts the specified value to JsonValue.
ToJson(UInt32, Boolean) Converts the specified value to JsonValue.
ToJson(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.
ToJson(DateOnly, JsonDateTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(DateTime, JsonDateTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(DateTimeOffset, JsonDateTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(NullableDateOnly, JsonDateTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(NullableDateTime, JsonDateTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(NullableDateTimeOffset, JsonDateTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(NullableTimeOnly, JsonTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(NullableTimeSpan, JsonTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(TimeOnly, JsonTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJson(TimeSpan, JsonTimeFormat, Boolean) Converts the specified value to JsonValue.
ToJsonTEnum(NullableTEnum, JsonEnumFormat, String) Converts the specified value to JsonValue.
ToJsonTEnum(TEnum, JsonEnumFormat, String) Converts the specified value to JsonValue.

See Also