Json::encode() and Json::decode() limit what we can do with JSON

Created on 4 April 2012, about 12 years ago
Updated 31 January 2023, over 1 year ago

drupal_json_decode() and drupal_json_encode() limit what you can do with the functions. Using straight up json_encode() and json_decode() actually give you more power than the Drupal wrappers. Let's make the wrappers just as powerful as the PHP functions themselves.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
BaseΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡¨πŸ‡¦Canada RobLoach Earth

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    Also not sure about the "why" for this.

    Tagging for an issue summary update to better explain why this needs to be done.

    Also see it was previously tagged for tests which still would need to happen.

    Thanks!

Production build 0.69.0 2024