you mean a bundle with Sling-Intial-Content containing a json file which should be imported as binary file?
by default the JCR content loader tries to parse the JSON file and import it as content structure. you can disable this behavior for your bundle by adding a "ignoreImportProviders" directive (see ) the the bundle header. example for Sling-Initial-Content header: SLING-INF/content/home;path:=/sites/sling_website;ignoreImportProviders:=json filevault-typical structures like xyz.dir do not work in this context. you just name your file xyz.json and it is imported as nt:file node names xyz.json. stefan  https://sling.apache.org/documentation/bundles/content-loading-jcr-contentloader.html >-----Original Message----- >From: Andreas Schaefer [mailto:a...@headwire.com] >Sent: Sunday, March 19, 2017 7:24 PM >To: email@example.com >Cc: Andreas Schaefer >Subject: Bundle based JCR File > >Hi > >I want to add a JSon file to Sling as JCR Node (primary type nt:file) >inside a Bundle Content. > >Is that possible and if how does the structure look like: > >In the XML based export the structure looks like this: > >- my-file (raw file) >- my-file.dir > - .content.xml (jcr:root of type nt:file with a jcr:content of type >nt:resource and the files mime type) > >I tried the following: > >- my-file >- my-file.dir.json with a JSon-ified version of the XML) > >but that did not work. > >Cheers - Andy Schaefer >