[wp-trac] [WordPress Trac] #23099: Add JSON-RPC support using existing XML-RPC methods

WordPress Trac noreply at wordpress.org
Wed Jan 2 01:23:03 UTC 2013


#23099: Add JSON-RPC support using existing XML-RPC methods
-----------------------------+------------------------------
 Reporter:  maxcutler        |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  XML-RPC          |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by maxcutler):

 This is a prototype implementation that allows for pluggable serialization
 engines, and includes a simple JSON-RPC 2.0 server implementation as a
 proof-of-concept.

 This works by changing the `wp_xmlrpc_server` class to no longer `extend
 IXR_Server`, and instead determine which server class to use in
 `serve_request`. If the request has 'Content-Type: application/json'
 header, it uses JSON-RPC, otherwise it uses normal XML-RPC. Plugins can
 use the filter to inspect the request and use their own serialization
 engines if they want.

 If this approach is acceptable, then more work can be put into the JSON-
 RPC implementation, or else a third-party library can be used as a base
 like IXR was used for XML-RPC. But I didn't want to put in work
 unnecessarily, so feedback would be appreciated.

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


More information about the wp-trac mailing list