Add a JSON converter for player types