> ## 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/objecttojsoncommand-01.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=56a00f9132d44097d6dd4d3df9bfa72c" alt="对象转json文本指令参数面板" width="648" height="344" data-path="helpcenter/commands/data-processing/images/objecttojsoncommand-01.png" />

    | 参数        | 说明     |
    | --------- | ------ |
    | **对象**    | 输入一个对象 |
    | **结果保存至** | Json文本 |
  </Tab>

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

## 使用示例

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

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

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

使用【对象转json文本呢】将Json对象，转为Json文本，并保存到Json文本

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/objecttojsoncommand-03.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=b459e8c965c576bcd8cc314abe4fe126" alt="对象转json文本使用示例 - 效果展示" width="997" height="195" data-path="helpcenter/commands/data-processing/images/objecttojsoncommand-03.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/objecttojsoncommand-04.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=73ce3f6c729e3f08dedafbdf0b76d553" alt="对象转json文本使用示例 - 效果展示" width="361" height="153" data-path="helpcenter/commands/data-processing/images/objecttojsoncommand-04.png" />

<img src="https://mintcdn.com/bazhuayu-rpa-docs/QLw4prvAN-mejJU5/helpcenter/commands/data-processing/images/objecttojsoncommand-05.png?fit=max&auto=format&n=QLw4prvAN-mejJU5&q=85&s=018ca26bba158a3d1137e4125bace03a" alt="对象转json文本使用示例 - 效果展示" width="663" height="147" data-path="helpcenter/commands/data-processing/images/objecttojsoncommand-05.png" />

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