There is an array in the form of JSON, in which I have a Django loop with variables:
var dataJSONArray = JSON.parse('[ {% for client in clients %} {"firstName":"", "lastName":"{{ client.last_name }}", "email":"{{ client.email }}", "phone":"{{ client.phone }}", "company":"{{ client.company }}", "test":"{{ client.demo }}", "joined":"{{ client.date_joined }}", "paidOrder":"{{ client.orders.count }}/{{ client.get_payment_orders.count }}", "launches":"{{ client.get_finished_launches.count }}/{{ client.launched_products.count }}"} {% endfor %} ]'); And he, of course, does not want to parse, swears. How can you safely replace Django variables with, say, JavaScript? Thank.