The problem lies not in json_encode, it lies in ‘603’. Obiously it is a string, not a number. With a number, it works as you want to. For example:
echo json_encode(array(‘event_id’ => 603));
renders to
{“event_id”:603}

So the question is: Where does the ‘603’ come from? That’s the interesting part!