Let's use the http://codex.wordpress.org/Function_Reference/wp_send_json helper function