Table of Contents

Class JsonElementExtensions

Namespace
FoundationaLLM.Common.Extensions
Assembly
FoundationaLLM.Common.dll

Provides extension methods for JsonElement.

public static class JsonElementExtensions
Inheritance
JsonElementExtensions
Inherited Members

Methods

ToObject(JsonElement)

Converts the JSON element to the underlying object type.

public static object? ToObject(this JsonElement jsonElement)

Parameters

jsonElement JsonElement

The JSON element to convert.

Returns

object

The underlying object type.

Exceptions

NotSupportedException