Fix JsonPathService::extractFirst returning incorrect results
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3571345. -->
Reported by: [joevagyok](https://www.drupal.org/user/2876343)
>>>
<h3>Problem</h3>
<p>The JsonPathService::extractFirst method was not returning the correct value when extracting data using JSON path expressions, causing data flow issues between nodes.</p>
<h3>Root Cause</h3>
<p>The method was wrapping results in an additional array layer instead of returning the direct result.</p>
<h3>Solution</h3>
<p>Refactored the extractFirst method to handle results directly without additional wrapping, ensuring the correct value is returned.</p>
<h3>Impact</h3>
<ul>
<li>JSON path extractions now return expected values</li>
<li>Data transformations work correctly</li>
<li>Node processors receive properly formatted input data</li>
</ul>
issue