how to create this type of array in javascript?? my array structure as below
{
"Name":"Mr.X",
"Name":"Main Outlet",
"data":{
"company":{
"company_id":"5",
"company name":"texas LTD.",
"owner_name":"MR jack",
"owner_email":"[email protected]",
"owner_mobile":"999999",
"comp_product":[
{
"Productid" : "1",
"Productname" : "samsung"
},
{
"Productid" : "2",
"Productname" : "nokia"
}
]
}
}
}
object.Name
orobject.data[0].company[0].company_id
etc... – RemarkLima May 31 '13 at 9:32Name
twice, you have to use unique property names. – user1983983 May 31 '13 at 9:38