[wp-trac] [WordPress Trac] #39755: Rest API json string corruption?

WordPress Trac noreply at wordpress.org
Wed Feb 1 05:52:57 UTC 2017


#39755: Rest API json string corruption?
--------------------------+------------------------------
 Reporter:  sgehrman      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by rmccue):

 Hi @sgehrman and welcome to Trac :)

 I cannot replicate this locally:

 {{{
 $ curl -X POST vagrant.local/wp-json/api/rest
 {"wtf": "w                      t                          f"}
 }}}

 It's possible that the way you're viewing the data is displaying this with
 spaces compressed, or something in `$.post()` is altering this. If you're
 outputting this data into HTML, keep in mind that HTML compacts multiple
 spaces into a single one.

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


More information about the wp-trac mailing list