make position a Point and (de)serialize the point from json