data-sources.json is not conform to JSON specification, some special characters are not escaped #12501
Unanswered
aisbergde
asked this question in
DBeaver Development
Replies: 2 comments
-
We use Gson in lenient mode to save/load JSON configuration. It is pretty standard. It is said that slash escaping is optional: https://stackoverflow.com/questions/29396608/how-to-escape-slashes-in-gson |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, I think it is not an issue. As I wrote
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I try to generate the virtual key definitions in
data-sources.json
by exporting JSON from SQL Server (where I have all these definitions). But The SQL Server can only create JSON which is conform to the JSON specification, and this JSON will escape some characters.For general info about escaping and encoding in JSON, see Section 2.5 of the JSON RFC - https://www.ietf.org/rfc/rfc4627.txt.
"/" are not escaped in
data-sources.json
and it is not possible to create this kind of not conform JSON by exporting from SQL Server:https://docs.microsoft.com/en-us/sql/relational-databases/json/how-for-json-escapes-special-characters-and-control-characters-sql-server?view=sql-server-ver15
dbeaver:
conform to specification:
System information:
Connection specification:
Describe the problem you're observing:
I did not find how to not escape special characters to be able to create the dbaever json.
But it looks like dbeaver can read and use the valid json which I can create. If this is the case than it is a workaround for me to create not identical json, but just to create json that works.
Better would be: #11626 (if dbeaver could export and import virtual keys to and from database), Then nobody needs to try to create content of
data-sources.json
Beta Was this translation helpful? Give feedback.
All reactions