LearnNewsExamplesServices
Frontmatter
id7826
titleExtract JSON parsing logic into Neo.util.Json
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtNov 20, 2025, 8:58 PM
updatedAtNov 20, 2025, 8:59 PM
githubUrlhttps://github.com/neomjs/neo/issues/7826
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 20, 2025, 8:59 PM

Extract JSON parsing logic into Neo.util.Json

Closed v11.8.0 enhancementairefactoring
tobiu
tobiu commented on Nov 20, 2025, 8:58 PM

Refactor the JSON parsing logic from SessionService into a reusable Neo.util.Json class. This utility handles Markdown code block stripping (json/js/javascript) to reliably parse AI responses.

Related to #7825.

Tasks:

  • Create src/util/Json.mjs
  • Export in src/util/_export.mjs
  • Use in SessionService.mjs
tobiu added the enhancement label on Nov 20, 2025, 8:58 PM
tobiu added the ai label on Nov 20, 2025, 8:58 PM
tobiu added the refactoring label on Nov 20, 2025, 8:58 PM
tobiu assigned to @tobiu on Nov 20, 2025, 8:58 PM
tobiu referenced in commit 1f7289e - "Extract JSON parsing logic into Neo.util.Json #7826" on Nov 20, 2025, 8:59 PM
tobiu closed this issue on Nov 20, 2025, 8:59 PM