You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Ian Boston (JIRA)" <ji...@apache.org> on 2013/02/19 05:45:13 UTC
[jira] [Commented] (SLING-2565) JSON file format in initial content
loading documentation is incorrect
[ https://issues.apache.org/jira/browse/SLING-2565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13581027#comment-13581027 ]
Ian Boston commented on SLING-2565:
-----------------------------------
Thank you for the report. Site updated.
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira