> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 文本转为Json对象

## 指令说明

**描述：** 将输入的文本转换成Json对象

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/parsejsoncommand-01.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=aa3b4c0bfc2755b358257223332b9631" alt="文本转为Json对象指令参数面板" width="657" height="429" data-path="helpcenter/commands/data-processing/images/parsejsoncommand-01.png" />

    | 参数        | 说明               |
    | --------- | ---------------- |
    | **文本**    | 输入待转换成Jason对象的文本 |
    | **生成的变量** | 保存转换后的Json为变量    |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/parsejsoncommand-03.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=90db1e8349bf725790d43f839269a1d5" alt="文本转为Json对象使用示例" width="655" height="430" data-path="helpcenter/commands/data-processing/images/parsejsoncommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/parsejsoncommand-02.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=9dc13f062a9b83939edeeaf525a490e4" alt="文本转为Json对象使用示例 - 流程搭建" width="832" height="153" data-path="helpcenter/commands/data-processing/images/parsejsoncommand-02.png" />

**该流程执行逻辑：**

使用【文本转为Json对象】将文本`{"name":"八爪鱼RPA","age":18,"class":"文本转为Json对象"}`转换成Json对象，并将对象保存到Json对象

使用【打印日志】命令打印Json对象消息日志

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/parsejsoncommand-04.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=7273acc3542b83571dee75c85ed03a5e" alt="文本转为Json对象使用示例 - 效果展示" width="996" height="221" data-path="helpcenter/commands/data-processing/images/parsejsoncommand-04.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
