package com.google.sps.servlets;

import java.io.IOException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/example")
public class ExampleServlet extends HttpServlet {

  @Override
  public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
    response.sendRedirect("example.html");
  }
}

@@ -27,16 +27,46 @@
 vlets;%0A%0A
+%0Aimport com.google.gson.Gson;%0A
 import j
@@ -262,16 +262,17 @@
 ponse;%0A%0A
+%0A
 @WebServ
@@ -277,23 +277,20 @@
 rvlet(%22/
-example
+data
 %22)%0Apubli
@@ -301,15 +301,12 @@
 ass 
-Example
+Data
 Serv
@@ -330,16 +330,73 @@
 ervlet %7B
+%0A  private final static Object STORAGE_CONTROLLER = null;
 %0A%0A  @Ove
@@ -519,33 +519,96 @@
 e.se
-ndRedirect(%22example.html%22
+tContentType(%22application/json%22);%0A    response.getWriter().println(new Gson().toJson(%22%22)
 );%0A 

add barebones servlet