Hi Peter, On Jan 22, 2008 8:00 AM, Peter Svensson <[EMAIL PROTECTED]> wrote:
> ...I did manage to checj out and build Sling alst night, and after a while > realized that the faulty json stuff is probably due to the fact that > javax.jcr.Property does not return tru when a property isMultiple(). Or has > the wrong ideas of what is multiple. That means that arrays never get > generates, but instead all herarchical json objects are just objects within > objects (which I prefer myself as well, but for some reason isn't > 'standard').... Could you given an example of what JSON you'd expect to get for a multivalued property? I don't think this is tested currently in the microsling-core or Launchpad tests, but I'll add it once we define what's needed. > ...But jcr isn't (of course) included in Sling only tha API jar, so now I have > to maybe checkout jcr as well and deal with those issues.... Not sure what you mean - the Launchpad and microsling-core both use an embedded Jackrabbit repository, so it's all in there. > ..So, what I've done instead is gone back to the client side and try to cram > more regexp mojo, so that I can transalte it nearer to home. We'll see how > it goes.... Ok fine - if you find a way to get what you need, we'll see how we can make this happen in Sling! -Bertrand
