workflow Code can't parse json input #10103

Closed
opened 2026-02-21 18:42:49 -05:00 by yindo · 0 comments
Owner

Originally created by @Egfly on GitHub (Mar 10, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.0.0

Cloud or Self Hosted

Cloud

Steps to reproduce

I have a workflow that needs to parse JSON strings input by users. If the input is a formatted string, it cannot be parsed.

// this is input
{
        "content_route": ["Web GUI 概述", "技术组成", "JavaScript 动态交互"],
        "description": "JavaScript 可以添加动态交互和功能,通过 DOM 操作、动态反应和 AJAX 调用服务器提供更好的用户体验。Web GUI 应用常使用一些框架,如 React.js、Vue.js 和 Angular 等,通过结构化和组件化的形式扩展 Web GUI 功能。"
}
Image

this is a dsl that can reproduce the issue.

1.txt

✔️ Expected Behavior

json string can be parsed

Actual Behavior

json string can not be parsed

Originally created by @Egfly on GitHub (Mar 10, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.0.0 ### Cloud or Self Hosted Cloud ### Steps to reproduce I have a workflow that needs to parse JSON strings input by users. If the input is a formatted string, it cannot be parsed. ``` // this is input {         "content_route": ["Web GUI 概述", "技术组成", "JavaScript 动态交互"],         "description": "JavaScript 可以添加动态交互和功能,通过 DOM 操作、动态反应和 AJAX 调用服务器提供更好的用户体验。Web GUI 应用常使用一些框架,如 React.js、Vue.js 和 Angular 等,通过结构化和组件化的形式扩展 Web GUI 功能。" } ``` <img width="1694" alt="Image" src="https://github.com/user-attachments/assets/8f360a77-4299-48c2-b965-60c7fbef1297" /> this is a `dsl` that can reproduce the issue. [1.txt](https://github.com/user-attachments/files/19157151/1.txt) ### ✔️ Expected Behavior json string can be parsed ### ❌ Actual Behavior json string can not be parsed
yindo added the 🐞 buggood first issue🌊 feat:workflow labels 2026-02-21 18:42:49 -05:00
yindo closed this issue 2026-02-21 18:42:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#10103