[ 
https://issues.apache.org/jira/browse/SLING-6878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143094#comment-16143094
 ] 

Carsten Ziegeler edited comment on SLING-6878 at 9/8/17 5:00 AM:
-----------------------------------------------------------------

The feature can be enabled by adding a directive to the header entry: 
propsJSON:=EXTENSION, e.g. propsJSON=json
All files having the configured extension will be treat as JSON files 
containing properties for the resources. It is possible to have a file and a 
JSON file for the same resource, like
/libs/system/myscript.txt
/libs/system/myscript.txt.json
The json file will then contain properties (value map) for the resource, this 
includes defining the resource type
Such a json file can also contain a deep tree of objects like
{noformat}
{
  "name" : "myscript",
  "child" : {
   "foo" : "bar";
  }
}
{noformat}
I've added some basic tests (previously this module did not have any test at 
all) verifying the basic functionality




was (Author: cziegeler):
The feature can be enabled by adding a directive to the header entry: 
propsJSON:=EXTENSION, e.g. propsJSON=json
All files having the configured extension will be treat as JSON files 
containing properties for the resources. It is possible to have a file and a 
JSON file for the same resource, like
/libs/system/myscript.txt
/libs/system/myscript.txt.json
The json file will then contain properties (value map) for the resource, this 
includes defining the resource type
Such a json file can also contain a deep tree of objects like
{noformat}
{
  "name" : "myscript",
  "child" : {
   "foo" : "bar";
  }
}

If added some basic tests (previously this module did not have any test at all) 
verifying the basic functionality
{noformat}


> Bundle resource provider: support mounting of JSON files
> --------------------------------------------------------
>
>                 Key: SLING-6878
>                 URL: https://issues.apache.org/jira/browse/SLING-6878
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Bundle Resource 2.2.2
>
>
> I think similar to SLING-6440 we should support mounting of JSON files 
> through the bundle resource provider (we don't need to support other file 
> formats as xml or vault)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to