Hi, I'm quite new to python (I use python 3), and i'm trying to serialize a class with one string and two lists as members in JSon. I found that there's a json lib in the python standart but it seems that I need to manually implement a serialization method. Is there a JSon encoder where I can simply pass an object, and receive the serialized object as string without having to implement a serialization method. Example:
class MyClass:
pass
if __name__ == '__main__':
my_name = "me"
my_list = {"one","two"}
my_obj = MyClass()
my_obj.name = my_name;
my_obj.my_list = my_list
serialized_object = JSONserializer.serialize(my_obj).
Thank you.