I try to extract Object from bellow array :
var array = [];
array =
a,b,c,{"A":"0","f":"1","g":"2"},{"B":"5","v":"8","x":"4"},{"C":"0","f":"1","g":"2"},c,b
imagine extract this :
result = [
{"A":"0","f":"1","g":"2"},{"B":"5","v":"8","x":"4"},{"C":"0","f":"1","g":"2"}
]
I use my code but didn't give me the right answer :
for (var i =0 ; i < array.length ; i++) {
console.log((array[i].split(','));
}
In this code I just get each variable in each line I need more thing because in each time maybe I have different array that has for example 2 Object in this example I just have 3 Object.I try to define If I has any Object I can find them and push them in one array.