Was able to use jsonpickle in order to convert the object to JSON.