views:

236

answers:

1

How do i parse JSON strings using Django template library. I can parse it using javascript in my template, but I would like to parse the json in the template library when it is rendered by the server. Is there a way to do it. - Amey Kanade

+1  A: 

I think you actually mean you parse JSON data using javascript not "in your template" but on the client side. Anyway, if you want to use JSON data in your template, why not process it in the view that provides variables to the template?

shanyu