Feature summary (what you would like to be able to do and where):
When you have results for a Wikidata query, there is a handy option called </> Code that makes it easy to reuse the query in a number of different ways.
It would be handy to have an option in there that prepares the query for being used in a Kartographer <mapframe>. This requires some fairly straightforward adjustments, but they are tedious to do manually and easy to forget
I don't know all the things it needs to do, but it really needs to swap " to ' or the mapframe will throw an error.
Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Often when you try to use a query in Kartographer, you get a JSON error (with poor error text), especially since many examples and the autocompleter uses ".
An example is shown in this video clip (although in that case, no one else but me is to blame): https://youtu.be/MhJlj1S_Mms?t=1049
Benefits (why should this be implemented?):
This will make it easier to make Wikidata supported Kartographer maps.