Hi Jag devs,
Initial investigation reveals that this is something to do with how
reflections are handled when using Rhino, probably in toString() for a json
element.
Is there something wrong with the code? or is this expected?
Code:
print (result);
for (var i = 0; i < result.length; i++) {
print("The " + i + "th result is : " + result[i]);
}
Output:
[{"PROD_NAME" : "Sugar", "QUANTITY_SOLD" : "3760", "TOTAL_AMOUNT" :
"34800.0", "PROD_ID" : "55"}, {"PROD_NAME" : "Milk", "QUANTITY_SOLD" :
"563", "TOTAL_AMOUNT" : "24500.0", "PROD_ID" : "124"}, {"PROD_NAME" :
"Bread", "QUANTITY_SOLD" : "5604", "TOTAL_AMOUNT" : "124900.0", "PROD_ID" :
"235"}, {"PROD_NAME" : "Butter", "QUANTITY_SOLD" : "320", "TOTAL_AMOUNT" :
"16900.0", "PROD_ID" : "346"}]
Cannot find default value for object. at line #11
--
Regards,
Tharindu
blog: http://mackiemathew.com/
M: +94777759908
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev