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

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)
--
Torgeir Veimo
[email protected]




Reply via email to