Skip to content

Instantly share code, notes, and snippets.

View MatthiasScholzTW's full-sized avatar

Matthias Scholz MatthiasScholzTW

  • ThoughtWorks
  • Munich
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