updated inheritance, fixed escaping of lists in json serializer