Frontmatter
| id | 8276 |
| title | [Neural Link] Implement toJSON in core.Observable |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Jan 1, 2026, 7:37 PM |
| updatedAt | Jan 3, 2026, 9:26 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8276 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 3, 2026, 9:26 PM |
[Neural Link] Implement toJSON in core.Observable
tobiu added parent issue #8200 on Jan 1, 2026, 7:37 PM
tobiu assigned to @tobiu on Jan 1, 2026, 7:47 PM

tobiu
Jan 3, 2026, 9:26 PM
Input from Gemini 2.5 pro:
✦ I have implemented
toJSONinsrc/core/Observable.mjsto serialize runtime event listeners. I also enhancedsrc/core/Base.mjs'sserializeConfigmethod to serialize functions as'[Function]', allowing for the complete serialization of event handler objects (including scope and ID).Changes committed in
feat(core): Implement toJSON in Observable and enhance serializeConfig #8276.
tobiu closed this issue on Jan 3, 2026, 9:26 PM
Implement
toJSONinsrc/core/Observable.mjsto export the runtime event listeners. Access the private event map (viaObject.getOwnPropertySymbols(this)or by exposing it if necessary). Map the listeners to a serializable format:event: 'click'fn: Function name or '[Function]'scope: Scope ID (if NeoInstance) or '[Object]'id: Event IDThis allows the Neural Link to inspect attached event handlers.