javascript - After receiving JSON how can i create the row to show in Django view -


suppose received json object in jquery function

[{"pk": 38, "model": "app.book", "fields": {"book_name": "learn json", "book_branch": "web"}}]

now want know how can create table row can append in existing table. provded don't know fields in object.

because have use same function on many objects have different fields don't want hard code fields. field name automatically json.

i have many examples internet hardcode fields

i assume parsed json using jquery.

you can use for...in [docs] loop iterate on properties of object.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -