I have the following code from my php script.
var str = "[{id : 'Gadji Tallo', poste : 'attaquants', taille : '1.85m', poids :'77kg', age :'20'},{id:'Mbaye Diagne', poste :'attaquants', taille : '', poids :'', age :'22'},{id:'Sigamary Diarra', poste :'attaquants', taille : '1.76m', poids :'74kg', age :'29'}]";
var result = JSON.parse(str)
what I want is to parse it as JSON to loop through it. When I run the following code I got this error in my chrome console:
Uncaught SyntaxError: Unexpected token i
Any clue / help is welcom. Thanks