Array
(
[id] => 1
[name] => oleg
)
Array
(
[id] => 2
[name] => vova
)
Array
(
[id] => 3
[name] => sergey
)
Array
(
[id] => 4
[name] => alex
)
если в json то так:
{"id":"1","name":"oleg"}{"id":"2","name":"vova"}{"id":"3","name":"sergey"}{"id":"4","name":"alex"}