Hello Qooxdoo gurus,

 Can somebody help me what I am doing wrong in marshalling json object?

 Here is my code:

 var skelton = {
 "id":77,
 "customerId":3,
 "items":[
 {
 "itemId":43,
 "productId":2,
 "product":{
 "id":2,
 "name":"Product 2"
 },
 "packname":"Box",
 "packing":{
 "packname":"Box"
 },
 "quantity":15,
 "price":25
 },
 {
 "itemId":44,
 "productId":1,
 "product":{
 "id":1,
 "name":"Product 1",
 },
 "packname":"Box",
 "packing":{
 "packname":"Box"
 },
 "quantity":10,
 "price":20
 }
 ],
 "customer":{
 "id":3,
 "name":"Customer 333333"
 },
 "invDate":"2005-06-07"
 };
 var model = qx.data.marshal.Json.createModel(skelton);
 alert(model.getItems()); 

 but model.getItems() is returing an array of two undefined objects instead of 
item objects.

 Thanks in advance for your support.

 Andria
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to