You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Javascript code for the JSON pane blindly replaces all single quotes with double quotes, presumably to convert Python single quoted strings to standard JSON double quoted strings.
However, it is perfectly legal to have single quotes inside of JSON string values, so this will turn correctly encoded JSON string into invalid JSON.
The simplest fix would simply be to remove the quote conversion hack. Otherwise, you are going to need to be smart enough to only convert quotes that are not inside of strings.
The text was updated successfully, but these errors were encountered:
The Javascript code for the JSON pane blindly replaces all single quotes with double quotes, presumably to convert Python single quoted strings to standard JSON double quoted strings.
panel/panel/models/json.ts
Line 17 in 3fdfa32
However, it is perfectly legal to have single quotes inside of JSON string values, so this will turn correctly encoded JSON string into invalid JSON.
The simplest fix would simply be to remove the quote conversion hack. Otherwise, you are going to need to be smart enough to only convert quotes that are not inside of strings.
The text was updated successfully, but these errors were encountered: