How to display only array value in JSON out in php
I am using below PHP code
echo '{"aaData":'.json_encode($user_details).'}';
And it return below output
{"aaData": [
{"id":"31","name":"Elankeeran","email":"ekeeran@yahoo.com","activated":"0","phone":""}
]}
But I need JSON output like below
{"aaData": [
{"31","Elankeeran","ekeeran@yahoo.com","0","1234"}
]}
Any one please help on this.
which outputs: