[CHORE] Add support for serializeObject.