Hi David,
Looking at the JsonReader implementation [1] getType
protected int getType(String name, Object object) {
if (object instanceof Double || object instanceof Float) {
return PropertyType.DOUBLE;
} else if (object instanceof Number) {
return
Chetan,
Thanks - this is perfect - I must be thinking thinking of something else.
Do you happen to know off the top of your head if the jcrcontent
loader is used for JSON initial-content? Just curious as to what the
documentation I found on the Sling site is in referenced to (using the
Looking at JsonReader source code it appears that intent of the
implementation was to have separate nodes and properties entries from JSON
tree. However implementation does not follow that intent.
So possibly a bug wrt mismatch between documentation and implementation.
Chetan Mehrotra
On Mon,
Can someone refresh my memory how to specify property types in a JSON file
used in a Bundle's initial-content?
I could swear i remember reading it on the Sling site, but can't find it again
-- i swear that sites randomizes its content every few days just so I can't
find anything on it :)
I