added json serialization in collection waypoints