Hi, Am Freitag, den 09.05.2008, 21:47 +0200 schrieb Tobias Bocanegra: > On 5/9/08, Paul Noden <[EMAIL PROTECTED]> wrote: > > The Import/Export round-trip is something that's critical once > > projects start to migrate or backup content, so I'm working on > > introducing a mechanism for importing content on the sling level. > > Script import/export is available using the webdav interface and > > doesn't need any special support, and we already have a suitable > > content export model - JSON. A suggestion from Felix was to introduce > > a :import post parameter which would take the JSON file as a direct > > input. The filename itself is irrelevant, and it's content should > > always be JSON. > my first question is: why introducing a new import/export format when > JCR already defines the sysview XML for exact that purpose? > furthermore, the API provides methods for exporting and importing.
We have JSON export and we have JSON import support in the initial content loader. So it is most natural to start round-tripping support with JSON. Later on, as we will certainly have sysview export in Sling (see SLING-393) we can also integrate this into the SlingPostServlet. Please don't start a wholy war on formats right now. Thanks. Regards Felix
