How to convert dictionary to JSON?

0 like 0 dislike
9 views
I need to validate the data. I want to use Json Schema. However, the original data in my dictionary. Can not understand can do I need some kind of manipulation to do or can diagram as straight to the dictionary to use. Do I need all this?:
dict_data = req.params json_data = json.loads(json.dumps(dict_data))
by | 9 views

1 Answer

0 like 0 dislike
Here it's not necessary. It is necessary "once the dictionary apply".
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
110,608 questions
257,186 answers
0 comments
33,912 users