Fix PlaygroundService::createSession() not JSON-encoding metadata
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3571349. --> Reported by: [joevagyok](https://www.drupal.org/user/2876343) >>> <h3>Problem</h3> <p>The PlaygroundService::createSession() method was not properly JSON-encoding the metadata array, causing metadata to be lost or corrupted when creating new playground sessions.</p> <h3>Root Cause</h3> <p>The metadata array was being passed directly to the database instead of being serialized to JSON first.</p> <h3>Solution</h3> <p>Updated the createSession() method to properly JSON-encode the metadata array before storage.</p> <h3>Impact</h3> <ul> <li>Session metadata is now properly preserved</li> <li>Session configuration works as expected</li> </ul>
issue