org.apache.sling.jcr.contentloader.internal.readers.JsonReader
son.org for information on the syntax of JSON) : # the name of the node is taken from the name of the file without the .json ext. { # optional primary node type, default "nt:unstructured" "jcr:primaryType":"sling:ScriptedComponent", # optional mixin node types as array "jcr:mixinTypes": [ ], # "properties" are added as key value pairs, the name of the key being the name # of the property. The value is either the string property value, array for # multi-values or an object whose value[s] property denotes the property # value(s) and whose type property denotes the property type "sling:contentClass": "com.day.sling.jcr.test.Test", "sampleMulti": [ "v1", "v2" ], "sampleStruct": 1, "sampleStructMulti": [ 1, 2, 3 ], # reference properties start with jcr:reference "jcr:reference:sampleReference": "/test/content", # path propertie start with jcr:path "jcr:path:sampleReference": "/test/path", # nested nodes are added as nested maps. "sling:scripts": { "jcr:primaryType": "sling:ScriptList", "script1" :{ "primaryNodeType": "sling:Script", "sling:name": "/test/content/jsp/start.jsp", "sling:type": "jsp", "sling:glob": "*" } } }