json_encode the ID