I\'m trying to pass a Query Set from Django to a template with javascript.
I\'ve tried different approaches to solve this:
1. Normal Approach - Javas
You can use the combination of safe and escapejs built-in filter in Django.
var json_string = unescape({{json_list | safe | escapejs}}); var json_data = JSON.parse(json_string);