add reflection for easily getting json from managed objects