Skip to content

Single quotes (') are not allowed in JSON #1264

Closed

Description

@joshmedeski

I got the following error:

version model
10.3.57 OpenRouter Qwen3 Coder 480B A35B Instruct
AI_InvalidToolInputError: Invalid input for tool todowrite:
JSON parsing failed: Text: {"todos": [{'content': 'Add
input field state to TuiModel struct', 'status':
'completed', 'priority': 'high', 'id': '1'}, {'content':
'Update Init() to initialize input field', 'status':
'completed', 'priority': 'high', 'id': '2'}, {'content':
'Update Update() to handle input field interactions',
'status': 'completed', 'priority': 'high', 'id': '3'},
{'content': 'Update View() to render input field at top
with full width', 'status': 'completed', 'priority':
'high', 'id': '4'}, {'content': 'Update renderSessions() to
use full width layout', 'status': 'completed', 'priority':
'medium', 'id': '5'}]}.
Error message: JSON Parse error: Single quotes (') are not
allowed in JSON

Here's the conversation:
https://opencode.ai/s/i3e3UeDp

I'm guessing it could just be the new Qwen model, but can we transform the payload before the JSON parser reads it?

Activity

  1. self-assigned this
    on Jul 25, 2025
  2. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions