Skip to content

Instantly share code, notes, and snippets.

View tkallenberg-tw's full-sized avatar

Thomas Kallenberg tkallenberg-tw

  • Thoughtworks
  • Stuttgart
View GitHub Profile
@tkallenberg-tw
tkallenberg-tw / demo.py
Created October 27, 2020 14:06
Simple python object to json serialization
import json
import pprint
class Brain:
def __init__(self, iq):
self.iq = iq
class Person():
def __init__(self, name=None, age=None, brain: Brain=None):
self.age = age