How to convert dictionary to JSON?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
12 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 | 12 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
35,647 users