I want to load the staticfile json that is present in the code into the js to host the swagger.
My index.html:
<HTML>
<head>
{% load static %}
</head>
<body>
<script src="{% static "js/script1" %}"></script>
<script>
var json_contents = // Use the static json `js/json1.json` in here?
</script>
</body>
</html>
How to do the above?