# Run workflow output array problems

**URL:** <https://community.mindstudio.ai/t/run-workflow-output-array-problems/1108>\
**Category:** MindStudio IDE\
**Created:** [June 11, 2025, 3:46pm UTC](https://community.mindstudio.ai/t/run-workflow-output-array-problems/1108 "2025-06-11T15:46:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![per](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/per/32/451_2.png) [@per](https://community.mindstudio.ai/u/per)\
**Post date:** [June 11, 2025, 3:46pm UTC](https://community.mindstudio.ai/t/run-workflow-output-array-problems/1108/1 "2025-06-11T15:46:57Z")

</div>

I’m going crazy, I’ve been working on an agent that in one workflow writes long form text divided into chapters. The main workflow contains a block that runs another workflow to write all chapters. The chapters are written by the sub-workflow without errors, but the collected chapters seem to be saved into {{book}} as one very long json string instead of a proper array. So using the data therein has been a nightmare for me. I want to avoid having an LLM parsing the output of the sub-workflow into a proper array (it can be huge) - it should already be a proper array, right? Tried javascript functions, but not really getting the desired results (mostly failing execution due to format validation). I mean, I only want to assemble each chapter after another in the sequence they are in the variable, exactly as they are with three new lines after each chapter. (So I can have the sub-workflow output in the format I want (HTML or markdown))

Can someone please elucidate me?

Run workflow config:

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/da08960b58afb60f44c6fa25180dd12009cb9676.png)

Launch and output parameters:

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/883dfc1fadc54e8d16d6688f43e4d63abcad4b31.png)

Sub-workflow end block:

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/45aaf5309892319032a24f04cf6fd10be4a9b04d.png)

Looking at the output variable inside IDE:

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/145b365f870f02c1aa7ccd7eadd3613376217698.png)

If I open in new tab:

 ![image](https://canada1.discourse-cdn.com/flex008/uploads/mindstudio/original/1X/9e9782998ecc3ef374dad870bc1aec86c24e03a7.png)

---

<div class="post-metadata">

**Author:** ![Alex\_MindStudio](https://yyz2.discourse-cdn.com/flex008/user_avatar/community.mindstudio.ai/alex_mindstudio/32/27_2.png) [@Alex\_MindStudio](https://community.mindstudio.ai/u/Alex_MindStudio)\
**Post date:** [June 12, 2025, 2:31pm UTC](https://community.mindstudio.ai/t/run-workflow-output-array-problems/1108/2 "2025-06-12T14:31:31Z")

</div>

Hi @per,

Thanks for the post!

When you open the output in a new tab, it will display a raw stringified version of the output. You can use that output directly without running it through a Custom Function.

If you’re receiving a JSON array that has nested values from a Run Workflow block, and you’re looking to turn it into a clean HTML or markdown format, you can extract specific values using the [get helper](https://help.mindstudio.ai/building-ai-agents/variables/working-with-json#extracting-a-value-from-a-json-structure) like this:  
{{get myVariable “$.path.to.value”}}

Let me know what you think.
