using this plugin, a little explained :) http://syntatical.com/wordpress-json-api-explained/