javascript - strange json_encode result returned in ajax callback -


what did

while ($obj = $post_items->fetch_object()) {      echo json_encode($obj);  } 

and console callback, seem working found data isn't correct. object have property post id , post_id, see below

enter image description here

how can be?


Comments

Popular posts from this blog

node.js - StackOverflow API not returning JSON -

python - Subclassed QStyledItemDelegate ignores Stylesheet -

php - Laravel 4.1 to Heroku: SQLSTATE[HY000] [2002] No such file or directory -