What exactly is a "JSON encoded array" that the select editable type is expecting for the data argument? I have a perfectly valid JSON file in the format specified in the docs, but it doesn't seem to want to accept that if I try to pass it directly, I get the error:
ReferenceError: json is not defined
So I tried to wrap it with JSON.stringify and pass that instead, and now I get this error:
TypeError: context is undefined
If I do a console.log on the returned string, copy and paste that directly as an argument and replace the double quotes at the ends with single quotes it works.
What exactly is a "JSON encoded array" that the select editable type is expecting for the data argument? I have a perfectly valid JSON file in the format specified in the docs, but it doesn't seem to want to accept that if I try to pass it directly, I get the error:
So I tried to wrap it with JSON.stringify and pass that instead, and now I get this error:
If I do a console.log on the returned string, copy and paste that directly as an argument and replace the double quotes at the ends with single quotes it works.
Here's the json in question: