Make our json api compatible with head of WP-API