[ https://issues.apache.org/jira/browse/SLING-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805952#action_12805952 ]
Simon Gaeremynck commented on SLING-1172: ----------------------------------------- We had a similar use case. We handled it by creating a SlingPostOperation, code at [1] The user can do a POST request to the resource he wants to add/modify the tree. This has the benefit that the base resource gets resolved. The JSON is stored in a regular form parameter. [1] http://github.com/simong/open-experiments/blob/master/slingtests/osgikernel/bundles/batch/src/main/java/org/sakaiproject/kernel/batch/CreateTreeOperation.java > Allow uploading JSON files to create content structures > ------------------------------------------------------- > > Key: SLING-1172 > URL: https://issues.apache.org/jira/browse/SLING-1172 > Project: Sling > Issue Type: New Feature > Components: Servlets > Affects Versions: Servlets Post 2.0.4 > Reporter: Felix Meschberger > Fix For: Servlets Post 2.0.6 > > > Currently uploading a JSON file will just create the file node. > On the other hand it would be useful if uploading to a node with a request > extension of JSON, the JSON would be unpacked and handled as if it would be a > modification request with the JSON data being the content to store. > This would be similar to JSON upload supported by CouchDB. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.