I have one array, one json object like this
["www.flipkart.com","www.amazon.in"]
[
{
"product_name": "Deepcool",
"dollar_price": 2.9697123914957047,
"product_code": "C60_4123"
},
{
"product_name": "Deepcool XFAN",
"dollar_price": 5.473902300000191,
"product_code": "C60_4123"
},
{
"product_name": "DeepcoolXFAN80",
"dollar_price": 5.473902300000191,
"product_code": "C60_4123"
}
]
I just set this object as hidden variable like below
<input value="[object Object],[object Object],[object Object]" class="graphobj1" type="hidden">
<input value="www.flipkart.com","www.amazon.in" class="graphobj2" type="hidden">
When i retrive this json object back from the page like this
var z1 = $('.graphobj1');
var z2 = $('.graphobj2');
and when i alert this , it shows the error TypeError: cyclic object value
, how can i get my objects return back as it is?