# 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

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) 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](https://docs.wisej.com/api/wisej.core/general/wisej.core.dynamicobject) representing the JSON data.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) 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](https://docs.wisej.com/api/wisej.core/general/wisej.core.dynamicobject) representing the JSON data.

### ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-e4f8ed47a52590951f725a10c269555e81d41d81%2Fstatic.png?alt=media) 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** ![](https://1075938901-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2HvlWXJQMV7DxhGzw7Y1%2Fuploads%2Fgit-blob-723b640963c6cd781ff8c5ce5b24149fa0af7b9c%2Fbadge-optional.svg?alt=media) | [WisejSerializerOptions](https://docs.wisej.com/api/wisej.core/general/wisej.core.wisejserializeroptions) | Serializer options.         |

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