public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("json");
PrintWriter out = response.getWriter();
User user = (User) request.getSession().getAttribute("user");
List<Pari> paris = user.getParis();
DaoPariHistorique daoParisHistorique = new DaoPariHistorique();
List<PariHistorique> paris_historique = daoParisHistorique.getBetsHistory(user.getMail());
List<List<Paris_S>> json = new ArrayList<List<Paris_S>>();
if(paris != null && !paris.isEmpty()) {
List<GareSelection> selection = (List<GareSelection>) request.getAttribute("gares_selection");
List<Paris_S> json_p = new ArrayList<Paris_S>();
for(Pari p : paris) {