inject ResultProviderInterface in to index controller and return json