How to i get the values of particular field for Example: son, flower(Title) from
json = [{"pk": 1, "model": "book", "fields": {"title": "sum", "author": "son", "description": "dfg"}}, {"pk": 2, "model": "book", "fields": {"title": "Eradication", "author": "flower", "description": "nandhu"}}]
using ajax in ajax success part. Can anyone help me ?
With jQuery, you can just use the getJSON function as such:
Just to make sure, here’s the python view that goes with it:
The url should be defined nicely with a name too: