gradle-master/subprojects/docs/src/samples/templates/structuring-software-projects/server-application/app/src/main/java/com/example/myproduct/server/MyProductJsonController.java
package com.example.myproduct.server;

import com.example.myproduct.user.table.TableBuilder;

import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MyProductJsonController {

    @RequestMapping(value = "/json", produces = MediaType.APPLICATION_JSON_VALUE)
    public List<List<String>> json() {
        return TableBuilder.build();
    }

}
