[wp-hackers] WordPress JSON library?
Otto
otto at ottodestruct.com
Tue Mar 17 11:55:20 GMT 2009
WordPress seems to use mostly XML responses when it needs to send back
complex AJAX data (more complex than a status code or HTML). Look at
the WP_Ajax_Response class.
-Otto
On Tue, Mar 17, 2009 at 4:17 AM, Simon Wheatley
<simon at sweetinteraction.com> wrote:
> Hi all,
>
> What do people use in WP for encoding JSON replies to AJAX queries?
> Currently I use the Moxiecode_JSON class, but this involves a fairly
> contorted require, ie:
>
> require_once( ABSPATH .
> "/wp-includes/js/tinymce/plugins/spellchecker/classes/utils/JSON.php"
> );
>
> I've grepped through the WordPress code for 'json' and can't see
> anything, but is there a more convenient class or function I could
> use?
>
> S
>
>
> ---
> Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
> Registered office: 7 Malton Av, Manchester, M21 8AT
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list