Object correctly stores names of parent and serialize to json.