Im new to django and im trying to save json to database. The problem is that im able to get data the data in my views but not sure how to save it in
If you're using Postgres, you can store json with JSONField (read more), but if not, you need parse json to string and save with CharField/TextField using json.dumps(data). To recovery data, use json string to dict with json.loads(json_string)
JSONField
CharField
TextField
json.dumps(data)
json.loads(json_string)
Remember to import json lib: import json
import json