[wp-trac] [WordPress Trac] #39150: Empty JSON Payload Causes rest_invalid_json

WordPress Trac noreply at wordpress.org
Thu Dec 8 02:59:01 UTC 2016


#39150: Empty JSON Payload Causes rest_invalid_json
--------------------------------------+-----------------------
 Reporter:  GamerZ                    |       Owner:  jnylen0
     Type:  defect (bug)              |      Status:  accepted
 Priority:  normal                    |   Milestone:  4.7.1
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+-----------------------
Changes (by jnylen0):

 * owner:   => jnylen0
 * status:  new => accepted
 * milestone:  Awaiting Review => 4.7.1


Comment:

 Discussed a bit [https://wordpress.slack.com/archives/core-
 restapi/p1481148728000456 in Slack], technically the empty string is not
 valid JSON but this was a backwards compatibility break so we'll fix it in
 core.

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


More information about the wp-trac mailing list