# WisejSerializer

Namespace: **Wisej.Core**

Assembly: **Wisej.Framework** (4.0.0.0)

Wisej super performant JSON serializer. This is a high performant and low memory footprint JSON serializer/deserializer. It has been optimized to work with Wisej DynamicObject and to streamline serialization/deserialization. It appears to be the fastest JSON serializer/deserializer using the least memory.

{% tabs %}
{% tab title="C#" %}

```csharp
public class WisejSerializer
```

{% endtab %}

{% tab title="VB.NET" %}

```visual-basic
Public Class WisejSerializer
```

{% endtab %}
{% endtabs %}

## Methods

### ![](/files/lIX317sDtMTZJBi9oSIx) Parse(json)

Deserializes a JSON string to a System.Wisej.Core.DynamicObject.

| Parameter | Type                                                          | Description             |
| --------- | ------------------------------------------------------------- | ----------------------- |
| **json**  | [String](https://docs.microsoft.com/dotnet/api/system.string) | The JSON source string. |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). A [DynamicObject](/api/wisej.core/general/wisej.core.dynamicobject.md) representing the JSON data.

### ![](/files/lIX317sDtMTZJBi9oSIx) Parse(stream)

Deserializes a JSON stream to a System.Wisej.Core.DynamicObject.

| Parameter  | Type                                                             | Description             |
| ---------- | ---------------------------------------------------------------- | ----------------------- |
| **stream** | [Stream](https://docs.microsoft.com/dotnet/api/system.io.stream) | The JSON source stream. |

**Returns:** [Object](https://docs.microsoft.com/dotnet/api/system.object). A [DynamicObject](/api/wisej.core/general/wisej.core.dynamicobject.md) representing the JSON data.

### ![](/files/lIX317sDtMTZJBi9oSIx) Serialize(value, options)

Serializes an object to standard JSON.

| Parameter                                    | Type                                                                                   | Description                 |
| -------------------------------------------- | -------------------------------------------------------------------------------------- | --------------------------- |
| **value**                                    | [Object](https://docs.microsoft.com/dotnet/api/system.object)                          | Value to serialize to JSON. |
| **options** ![](/files/1vGqtbG2j637vQ4ROWOf) | [WisejSerializerOptions](/api/wisej.core/general/wisej.core.wisejserializeroptions.md) | Serializer options.         |

**Returns:** [String](https://docs.microsoft.com/dotnet/api/system.string). The JSON representation of *value* .


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/api/wisej.core/general/wisej.core.wisejserializer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
