#### [Abblix\.Jwt](https://www.abblix.com/docs/api/abblix-jwt 'index')
### [Abblix\.Jwt](https://www.abblix.com/docs/api/abblix-jwt/Abblix.Jwt 'Abblix\.Jwt')

## JsonNodeConversionExtensions Class

Converts between the mutable JSON nodes a token is built from and the read\-only elements a model carries\.

```csharp
public static class JsonNodeConversionExtensions
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → JsonNodeConversionExtensions
### Methods

## JsonNodeConversionExtensions\.ToJsonElement\(this JsonNode\) Method {#Abblix.Jwt.JsonNodeConversionExtensions.ToJsonElement(thisSystem.Text.Json.Nodes.JsonNode)}

Converts a JsonNode to a JsonElement\.

```csharp
public static System.Text.Json.JsonElement ToJsonElement(this System.Text.Json.Nodes.JsonNode? jsonNode);
```
#### Parameters

###### `jsonNode` [System\.Text\.Json\.Nodes\.JsonNode](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.nodes.jsonnode 'System\.Text\.Json\.Nodes\.JsonNode') {#Abblix.Jwt.JsonNodeConversionExtensions.ToJsonElement(thisSystem.Text.Json.Nodes.JsonNode).jsonNode}

The JsonNode to convert\.

#### Returns
[System\.Text\.Json\.JsonElement](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonelement 'System\.Text\.Json\.JsonElement')  
The converted JsonElement\.

## JsonNodeConversionExtensions\.ToJsonNode\(this JsonElement\) Method {#Abblix.Jwt.JsonNodeConversionExtensions.ToJsonNode(thisSystem.Text.Json.JsonElement)}

Converts a JsonElement to a JsonNode, allowing for more dynamic manipulation of the JSON structure\.

```csharp
public static System.Text.Json.Nodes.JsonNode? ToJsonNode(this System.Text.Json.JsonElement jsonElement);
```
#### Parameters

###### `jsonElement` [System\.Text\.Json\.JsonElement](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.jsonelement 'System\.Text\.Json\.JsonElement') {#Abblix.Jwt.JsonNodeConversionExtensions.ToJsonNode(thisSystem.Text.Json.JsonElement).jsonElement}

The JsonElement to convert\.

#### Returns
[System\.Text\.Json\.Nodes\.JsonNode](https://learn.microsoft.com/en-us/dotnet/api/system.text.json.nodes.jsonnode 'System\.Text\.Json\.Nodes\.JsonNode')  
The converted JsonNode\.

### Remarks
This method is useful when you need to convert from a structured JsonElement to a more flexible JsonNode\.
