diff --git a/app/controllers/projects/environments_controller.rb b/app/controllers/projects/environments_controller.rb
index ea22b2dcc15a5e7aff6c5822141af82e8f1e6d6e..9255388eb84933132c371f7a8e94450a65276f1c 100644
--- a/app/controllers/projects/environments_controller.rb
+++ b/app/controllers/projects/environments_controller.rb
@@ -15,6 +15,13 @@ class Projects::EnvironmentsController < Projects::ApplicationController
       else
         @all_environments.available
       end
+    
+    respond_to do |format|
+      format.html
+      format.json do
+        render json: @environments
+      end
+    end
   end
 
   def show