CountList json serializer and deserializer