Hellow guys..! I need your help on converting JSON data into an array in javascript. Here below are my codes;
//---Variable----//
JsonData = [{"id":1,"Bus_RegNo":"T 784 DHJ","Name":"Bus1"}];
BusArray = [];
//---Converting JSON into an array--//
StringfiedData = JSON.stringify(JsonData);
BusArray = JSON.parse(StringfiedData);
alert(StringfiedData);
I tried to convert it but when alerting 'BusArray' am getting [object object], I need to get something like;
{"1","T 784 DHJ","Bus1"}
please help;