Re: nested jsonobjects/arrays

2010-01-07 Thread Yury Luneff
wrong JSONArray :) sorry :) - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: nested jsonobjects/arrays

2010-01-07 Thread Yury Luneff
At first, I thought I embarassingly overlooked I was quoting the data by myself, but nevertheless (strangely) I still get the same behaviour: in the template: var routes = ${routes}; in rendered page: var routes = [["{\"longitude\":38.94441,\"latitude\":47.203542}",... The corresponding code is

Re: nested jsonobjects/arrays

2010-01-07 Thread Howard Lewis Ship
jsonRoutePoints.put(jsonPoint) 2010/1/7 Yury Luneff : > Hello! > > I have following code: > public String getRoutes() { >        List routes = routeDAO.findAll(); >        JSONArray jsonRoutes = new JSONArray(); > >        for (Route route : routes) { >            JSONArray jsonRoutePoints = new J

nested jsonobjects/arrays

2010-01-07 Thread Yury Luneff
Hello! I have following code: public String getRoutes() { List routes = routeDAO.findAll(); JSONArray jsonRoutes = new JSONArray(); for (Route route : routes) { JSONArray jsonRoutePoints = new JSONArray(); for (RoutePoint point : route.getPoints())