Add `getStructuredOutput()` method to ExecutableFunctionCallInterface for returning parsed output
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3529313. --> Reported by: [narendrar](https://www.drupal.org/user/1730192) Related to !664 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>Currently, the <code>ExecutableFunctionCallInterface</code> provides only a <code>getReadableOutput(): string</code> method, which returns the output as a string (e.g., YAML or JSON). Consumers of this interface must manually parse this string every time they want to work with structured data. This leads to repetitive parsing code and tight coupling to the output format.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add a new method <code>getStructuredOutput(): array</code> to <code>ExecutableFunctionCallInterface</code>.</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <h3 id="summary-ui-changes">User interface changes</h3> <h3 id="summary-api-changes">API changes</h3> <h3 id="summary-data-model-changes">Data model changes</h3> > Related issue: [Issue #3522013](https://www.drupal.org/node/3522013)
issue