Point2D to_json