I know there was previous ticket about a json filter which came to the
conclusion it was too hard to do a generic one that could be used everywhere [1]
For the use case where the json is going to be in a script tag that won’t be
executed it seems to me like the approach in django-argonauts is per
> Having looked around my solution is to output the json string with {{
json_string|escapejs }}.
> Then in the javascript call JSON.parse twice
> JSON.parse(JSON.parse('"' + jsonString + '"'));
That doesn't seem nice at all. Is there any objection to putting the json
filter from django-argonauts
On Monday, October 5, 2015 at 7:30:46 PM UTC+2, riccardo.magliocchetti
wrote:
>
> Problem now is i need this thing working in Django 1.8 :)
>
That is most likely not gonna happen given our policies…
--
You received this message because you are subscribed to the Google Groups
"Django develo