LearnNewsExamplesServices
Frontmatter
id8228
title[Neural Link] Implement toJSON in container.Base
stateClosed
labels
enhancementaiarchitecture
assigneestobiu
createdAtDec 31, 2025, 2:45 PM
updatedAtDec 31, 2025, 2:55 PM
githubUrlhttps://github.com/neomjs/neo/issues/8228
authortobiu
commentsCount1
parentIssue8200
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 31, 2025, 2:55 PM

[Neural Link] Implement toJSON in container.Base

Closed v11.18.0 enhancementaiarchitecture
tobiu
tobiu commented on Dec 31, 2025, 2:45 PM

Objective: Implement the toJSON method in src/container/Base.mjs.

Schema: The method should return an object containing (in addition to component.Base properties):

  • itemCount: this.items?.length || 0
  • itemDefaults: The default configuration for items.
  • layout: this.layout?.toJSON() (Delegated serialization)

Note: We avoid recursively serializing items.

Context: This is part of the Neural Link serialization epic.

tobiu added the enhancement label on Dec 31, 2025, 2:45 PM
tobiu added the ai label on Dec 31, 2025, 2:45 PM
tobiu added the architecture label on Dec 31, 2025, 2:45 PM
tobiu added parent issue #8200 on Dec 31, 2025, 2:45 PM
tobiu assigned to @tobiu on Dec 31, 2025, 2:48 PM
tobiu referenced in commit 094b69c - "feat(container): Implement toJSON in container.Base (#8228)" on Dec 31, 2025, 2:55 PM
tobiu
tobiu Dec 31, 2025, 2:55 PM

Input from Gemini:

✦ Implemented toJSON() in src/container/Base.mjs. The method serializes:

  • dragResortable
  • itemCount
  • itemDefaults
  • layout (delegated serialization)
tobiu closed this issue on Dec 31, 2025, 2:55 PM