[ 
https://issues.apache.org/jira/browse/SLING-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alvin Lin updated SLING-2565:
-----------------------------

    Summary: JSON file format in initial content loading documentation is 
incorrect  (was: Initial content loading documentation is in correct)
    
> JSON file format in initial content loading documentation is incorrect
> ----------------------------------------------------------------------
>
>                 Key: SLING-2565
>                 URL: https://issues.apache.org/jira/browse/SLING-2565
>             Project: Sling
>          Issue Type: Improvement
>          Components: Documentation
>            Reporter: Alvin Lin
>
> The JSON format documented in 
> http://sling.apache.org/site/content-loading-jcrcontentloader.html is in 
> correct. I looked at the source for of 
> org.apache.sling.jcr.contentloader-2.1.6, and the way JSON file is parsed is 
> completely different from what is documented. For example in the document it 
> says to create child node you would do:
> {
>    "nodes":[....]
> }
> but you actually have to do 
> {
>     "node-name":{....}
> }
> It would be great if the document can get fixed. I spent hours staring at the 
> documentation and looking at my JSON file and wonder why it does not work. I 
> eventually had to dig up the stack trace and look up the source code to 
> figure out the correct format. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to