Changed mysql_fetch_array to mysql_fetch_assoc to get proper JSON (without numbered keys).