<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@easyops-cn/brick-next-pipes](./brick-next-pipes.md) &gt; [json](./brick-next-pipes.json.md)

## json() function

解析一个 JSON 格式的字符串（反序列化）。

 Serialization

**Signature:**

```typescript
export declare function json(value: string): unknown;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | string | JSON 格式的字符串。 |

**Returns:**

unknown

返回解析后的值；如果解析失败返回 `undefined`<!-- -->；如果输入为 `null` 或 `undefined` 返回原输入。

