Javascript fails while trying to declare nested object
I am trying to build a jQuery based simple mail template system. It is
basically a nested array which is supposed to look like:
templates[1] = {
"name":"product damage claim",
"def":{
{'Customer Name?','delivery_name',1},
{'Date by which information should be provided by
customer?','',1},
{'Order ID','orders_id',0}
},
"tpl":'Mail Content goes here'
};
Now if I write the above, javascript fails. It seems, I am doing something
wrong in defining the def object, any idea what?
No comments:
Post a Comment