Using extension for JSON API instead of theme