I'm getting a string which represents a JSON Object (it's a valid JSON string according to JSONLint).
When I call :
console.log(JSON.parse(datasource_graphe_un));
It returns a string, confirmed by :
console.log(typeof jQuery.parseJSON(datasource_graphe_un));
returning string.
Here's an example of the string I try to parse :
[ {"id":195197,"val":9800,"date":"2009/05/11","ax":1242023901,"number":8,"valval":9200} , ... ]
Why can't I parse it ? And why jQuery.parseJSON returns a string ?
Thank's
JSON.parseactually returning?JSON.parse(JSON.parse(datasource_graphe_un);it returns the correct object (and yes it is twice). Don't know why.