Frontmatter
| id | 8296 |
| title | [Neural Link] Implement toJSON in form.Container |
| state | Closed |
| labels | enhancementaiarchitecture |
| assignees | tobiu |
| createdAt | Jan 3, 2026, 12:48 PM |
| updatedAt | Jan 3, 2026, 10:00 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8296 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 3, 2026, 10:00 PM |
[Neural Link] Implement toJSON in form.Container
tobiu added parent issue #8200 on Jan 3, 2026, 12:50 PM
tobiu assigned to @tobiu on Jan 3, 2026, 8:30 PM

tobiu
Jan 3, 2026, 9:59 PM
Input from Gemini 2.5 pro:
✦ I have implemented
toJSONinsrc/form/Container.mjsto export the form's current values.Implementation Details:
- Synchronous Snapshot: The method synchronously iterates over currently instantiated child components using
ComponentManager.getChildComponents(this). This ensurestoJSONremains a fast, side-effect-free snapshot of the current runtime state, aligning with the lazy-loading architecture of large forms.- Value Aggregation: It replicates the logic of
getSubmitValues(handling names, form groups, and array-based values for CheckBoxes/Radios) to construct thevaluesobject.- Type Safety: Uses the auto-generated
isBasefieldflag to correctly identify form fields.Changes committed in
feat(form): Implement toJSON in form.Container #8296.
tobiu closed this issue on Jan 3, 2026, 10:00 PM
tobiu cross-referenced by #8304 on Jan 3, 2026, 10:21 PM
Implement
toJSONserialization forNeo.form.Container.Scope: In addition to standard container serialization, export:
values: The result ofgetValues()(orgetSubmitValues()) to capture the form's state.Goal: Standardize serialization for Neural Link.