Returns a json_decode stdClass structure that contains two fields for
each property and one field for each child.
A child is just containing an empty class as value (in the future we
could use this for eager loading with recursive structure).
A property consists of a field named as the property is and a value that
is the property value, plus a second field with the same name but
prefixed with a colon that has a type specified as value (out of the
string constants from PropertyType)
For binary properties, the value of the type declaration is not the type
but the length of the binary, thus integer instead of string.
There is no value field for binary data (to avoid loading large amount
of unneeded data)
Use getBinaryStream to get the actual data of a binary property.
If prefetch is active, eventual children to be cached may be included as
stdClass children. This can be several levels deep, depending on the
prefetch setting.
There is a couple of "magic" properties:
- jcr:uuid - the unique id of the node
- jcr:primaryType - name of the primary type
- jcr:mixinTypes - comma separated list of mixin types
- jcr:index - the index of same name siblings