Skip to content

Escaping variables to prevent JSON format errors #737

@pepaba

Description

@pepaba

When using text variables in dashboard queries (e.g. ${filter}), users may enter special characters like \ or ". These result in invalid JSON and an empty one is sent to the backend, breaking the query.

Since Grafana doesn't automatically escape these values, users have to escape characters manually, which is error-prone and not user-friendly.

Suggestion: Could the plugin automatically apply JSON string escaping to interpolated variable values, or provide an option to sanitize input?

This would make the plugin more robust and reduce friction for dashboard users.

Thanks for the great tool!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions