updated obj2json to no longer use __dict__