Frontmatter
| id | 8277 |
| title | [Neural Link] Sanitize fields in data.Model.toJSON |
| state | Closed |
| labels | enhancementai |
| assignees | tobiu |
| createdAt | Jan 1, 2026, 7:37 PM |
| updatedAt | Jan 3, 2026, 9:31 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8277 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 8200 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 3, 2026, 9:31 PM |
[Neural Link] Sanitize fields in data.Model.toJSON
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:31 PM
Input from Gemini 2.5 pro:
✦ I have updated
src/data/Model.mjsto useme.serializeConfig(me.fields)in thetoJSONmethod. This leverages the recently enhancedserializeConfigincore.Baseto automatically sanitize function properties (likecalculate) into'[Function]'strings, ensuring clean JSON output for the Neural Link.Changes committed in
feat(data): Sanitize fields in Model.toJSON using serializeConfig #8277.
tobiu closed this issue on Jan 3, 2026, 9:31 PM
Update
src/data/Model.mjstoJSONmethod. Instead of returningfieldsdirectly, iterate over them and sanitize properties that are functions (likecalculateorconvert). Convert these functions to strings so they are visible in the JSON output.