Show / Hide Table of Contents

Class KubernetesJson

Inheritance
object
KubernetesJson
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: k8s
Assembly: KubernetesClient.dll
Syntax
public static class KubernetesJson

Methods

View Source

AddJsonOptions(Action<JsonSerializerOptions>)

Configures k8s.KubernetesJson.JsonSerializerOptions for the JsonSerializer. To override existing converters, add them to the top of the Converters list e.g. as follows:

options.Converters.Insert(index: 0, new JsonStringEnumConverter(JsonNamingPolicy.CamelCase));
Declaration
public static void AddJsonOptions(Action<JsonSerializerOptions> configure)
Parameters
Type Name Description
Action<JsonSerializerOptions> configure

An Action to configure the k8s.KubernetesJson.JsonSerializerOptions.

View Source

Deserialize<TValue>(Stream, JsonSerializerOptions)

Declaration
public static TValue Deserialize<TValue>(Stream json, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
Stream json
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
View Source

Deserialize<TValue>(string, JsonSerializerOptions)

Declaration
public static TValue Deserialize<TValue>(string json, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
string json
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
View Source

Deserialize<TValue>(JsonDocument, JsonSerializerOptions)

Declaration
public static TValue Deserialize<TValue>(JsonDocument json, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
JsonDocument json
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
View Source

Deserialize<TValue>(JsonElement, JsonSerializerOptions)

Declaration
public static TValue Deserialize<TValue>(JsonElement json, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
JsonElement json
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
View Source

Deserialize<TValue>(JsonNode, JsonSerializerOptions)

Declaration
public static TValue Deserialize<TValue>(JsonNode json, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
JsonNode json
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
View Source

Serialize(object, JsonSerializerOptions)

Declaration
public static string Serialize(object value, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
object value
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
string
View Source

Serialize(JsonDocument, JsonSerializerOptions)

Declaration
public static string Serialize(JsonDocument value, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
JsonDocument value
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
string
View Source

Serialize(JsonElement, JsonSerializerOptions)

Declaration
public static string Serialize(JsonElement value, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
JsonElement value
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
string
View Source

Serialize(JsonNode, JsonSerializerOptions)

Declaration
public static string Serialize(JsonNode value, JsonSerializerOptions jsonSerializerOptions = null)
Parameters
Type Name Description
JsonNode value
JsonSerializerOptions jsonSerializerOptions
Returns
Type Description
string
  • View Source
In this article
Back to top Generated by DocFX