Frontmatter
| id | 8258 |
| title | [Neural Link] Implement toJSON in container.Base items |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Jan 1, 2026, 5:25 PM |
| updatedAt | Jan 1, 2026, 5:27 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8258 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 1, 2026, 5:27 PM |
[Neural Link] Implement toJSON in container.Base items
tobiu added parent issue #8200 on Jan 1, 2026, 5:26 PM
tobiu assigned to @tobiu on Jan 1, 2026, 5:26 PM

tobiu
Jan 1, 2026, 5:27 PM
Input from Gemini:
✦ Implemented
toJSONincontainer.Base.
- Iterates over items.
- Maps
NeoInstancetoid.- Maps lazy-load objects (with function modules) to stringified functions.
- Retains
itemCount.- Falls back to
serializeConfigfor other object types.
tobiu closed this issue on Jan 1, 2026, 5:27 PM
Implement
toJSONserialization for theitemsarray incontainer.Base.Strategy:
this.items.NeoInstance: returnid.Object(Lazy Load): Stringify themodulefunction.itemCount.Context: Avoid recursive serialization of child components. Handle lazy-load configs where
moduleis a function. The else block forserializeConfigis likely unreachable given strictly manageditemscontent, but we will verify this assumption.