I have this kind of array:
array {
[0] => {"ID":"343","name":"John","money":"3000"}
[1] => {"ID":"344","name":"Erik","money":"2000"}
[2] => {"ID":"346","name":"Ronny","money":"3300"}
}
And I want to read it from PHP to JavaScript with JSON. As you can see, the inner array is already encoded as follows:
json_encode($a)
To be readable from my JavaScript code, I want it with the following syntax:
"[0]" : "{"ID":"343","name":"John","money":"3000"}",
"[1]" : "{"ID":"344","name":"Eric","money":"2000"}",
"[2]" : "{"ID":"345","name":"Ronny","money":"3300"}",
How can I do that?