Re: easy way to dump JSON from JCR Node or Resource?

2014-08-15 Thread Carsten Ziegeler
The code has recently moved to the commons json bundle, the easiest way would be to update that bundle. If that's not possible, just embed the classes in your bundle. Carsten 2014-08-14 23:45 GMT+02:00 Sam Lee skyn...@gmail.com: Hi, I want to dump all JCR content to mongodb for analysis. I

Re: easy way to dump JSON from JCR Node or Resource?

2014-08-15 Thread Sam Lee
Ended up writing my own Node to mongo db object (json) routine :P https://github.com/saml/jackrabbit-mongodb-dump/blob/eae1074e2cb59398348becb7d66dfdf4095ac241/src/main/scala/saml/mongo/package.scala#L21-L26 If anyone wants to dump JCR content into Mongo, here is how to use it:

easy way to dump JSON from JCR Node or Resource?

2014-08-14 Thread Sam Lee
Hi, I want to dump all JCR content to mongodb for analysis. I see there is https://issues.apache.org/jira/browse/SLING-3485 . And org.apache.sling.servlets.get.impl.helpers.ResourceTraversor does what I want to do. But I am stuck with older version of Sling. Are there other ways to dump JSON