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

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -