[wp-trac] [WordPress Trac] #14618: Proposal: Standardize WP Responses to JS Requests as JSON

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 26 04:43:13 UTC 2010


#14618: Proposal: Standardize WP Responses to JS Requests as JSON
-------------------------+--------------------------------------------------
 Reporter:  filosofo     |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  JavaScript   |     Version:  3.0           
 Severity:  normal       |    Keywords:  needs-patch   
-------------------------+--------------------------------------------------

Comment(by josephscott):

 I have no problem with JSON at all, it is my preferred serialization
 format.  I mentioned in my first comment my concern is with using an *RPC
 approach to a new API like this.  A simple HTTP (REST, though that term is
 generally mis-understood and abused) would be my preferred approach.  That
 is why I asked for advantages that *RPC provided that you couldn't do with
 simple HTTP and gave a specific weakness based on my experiences with XML-
 RPC.  Ignoring the obvious weakness because you haven't run into yet
 doesn't make it go away.

 I think there is definitely positive aspects to *RPC, but I consider
 base64 encoding to be a near fatal blow.  This is one point that AtomPub
 has a clear advantage over XML-RPC.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14618#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list