Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #64926, comment 18


Ignore:
Timestamp:
03/28/2026 03:28:14 AM (2 months ago)
Author:
westonruter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #64926, comment 18

    initial v1  
    44> Lossy Encoding: As noted by @zieladam, bracket notation collapses types (e.g., boolean false becomes string "false", null becomes empty string), which breaks logic for strict schemas like block attributes.
    55
    6 I'm not saying that adding JSON parsing fields is a bad idea, but as I shared in [comment:13 my comment above], it's not necessarily a lossy encoding. The problem with your example endpoint is that it lacks a schema for the `object` properties. If I modify your example as follows to add `properties`:
     6I'm not saying that adding JSON parsing of fields is a bad idea, but as I shared in [comment:13 my comment above], it's not necessarily a lossy encoding. The problem with your example endpoint is that it lacks a schema for the `object` properties. If I modify your example as follows to add `properties`:
    77
    88{{{#!php