refactor detected object to use jackson