with true option, it works fine.
sorry and thanks guys.
=============================================
I encoded php array to json with this code
$rows = array();
if ($result = $mysqli->query($query)) {
while ($row = $result->fetch_assoc()) {
$rows[] = $row;
}
echo json_encode($rows);
/* free result set */
$result->free();
}
end decode with
$array = json_decode($server_output)
the $server_output is like this
[{"userid":"96679","userinfor":"xxxxxxxxx","userlocation":"CA"}]
[{"userid":"153795","userinfor":"xxxxxxxxx","userlocation":"CA"}]
[{"userid":"131878","userinfor":"xxxxxxxxx","userlocation":"CA"}]
but, $array is NULL :(
Thanks in advence,