fixed json serialisation of SegmentList objects