Greetings,
How can I access and display JSON data in a template html file? I am getting the JSON data back in the javascript console as follows :
I tried {{ jason_data }} but no luck.
Thank you!
Here is how I am returning the json data in views.py:
return HttpResponse(json_obj, content_type='application/json')
- Console:
- [Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]
- 0:Object
- 1:Object
- 2:Object
- 3:Object
- 4:Object
- 5:Object
- 6:Object
- 7:Object
- 8:Object
- 9:Object
- 10:Object
- 11:Object
- 12:Object
- 13:Object
- length:14
- __proto__:Array[0]