[wp-trac] [WordPress Trac] #64926: REST API: GET requests fail object/array schema validation when params are JSON-serialized strings

WordPress Trac noreply at wordpress.org
Wed Mar 25 01:28:58 UTC 2026


#64926: REST API: GET requests fail object/array schema validation when params are
JSON-serialized strings
-------------------------------------+-------------------------------------
 Reporter:  dsmy                     |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  REST API                 |     Version:  trunk
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch reporter-    |     Focuses:  javascript, rest-api,
  feedback                           |  php-compatibility
-------------------------------------+-------------------------------------

Comment (by westonruter):

 Replying to [comment:4 dsmy]:
 > From what I've seen URLSearchParams doesn't support bracket notation
 natively. Constructing it manually for deeply nested objects is tedious,
 error prone, and there's no standard JavaScript API that bridges the two.

 What about the `qs` library? https://github.com/ljharb/qs

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64926#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list