Torgeir Veimo wrote: > > On 24 Dec 2008, at 18:58, Carsten Ziegeler wrote: > >> I've applied a patch in revision 729281 which outputs justa n empty >> object in these cases. Could you please test, if it now works for you? > > > With the latest SVN version, I still get an exception fetching > http://localhost:8080/.1.json > Hi,
from the stack trace below I see that you're not using the latest version from trunk. The best way to ensure that you're using latest code is to update the bundle through the web console. So once you have the sling webapp running go to the bundles section of the webconsole and upload the jar you build on your system. Carsten > What is the expected method to retrieve the children of the root node in > JSON format. > Exception; > org.apache.sling.commons.json.JSONException: Misplaced endArray. > org.apache.sling.commons.json.io.JSONWriter.end(JSONWriter.java:203) > org.apache.sling.commons.json.io.JSONWriter.endObject(JSONWriter.java:237) > > > org.apache.sling.servlets.get.helpers.JsonResourceWriter.dump(JsonResourceWriter.java:128) > > > org.apache.sling.servlets.get.helpers.JsonResourceWriter.dumpSingleResource(JsonResourceWriter.java:137) > > > org.apache.sling.servlets.get.helpers.JsonResourceWriter.dump(JsonResourceWriter.java:124) > > > org.apache.sling.servlets.get.helpers.JsonResourceWriter.dump(JsonResourceWriter.java:78) > > > org.apache.sling.servlets.get.helpers.JsonRendererServlet.doGet(JsonRendererServlet.java:94) > > > org.apache.sling.api.servlets.SlingSafeMethodsServlet.mayService(SlingSafeMethodsServlet.java:262) > -- Carsten Ziegeler [email protected]
