If you're telling $.post to expect 'json' from the server, and whenever you send json to the output, you should set correct content-type first:
$q_add_client = mysql_query($query);
$return = array(
'id' => mysql_insert_id(),
'response' => 0
);
header("content-type: application/json");
echo json_encode($return);