fix: Fixed header creation when nested empty objects were parsed