-2

messed up dictionary view change this format to this cleaned dictionary view

I am working on a project for self-learning, In the middle of the project while I was following up, my API's output was not cleaned and it was hard to read. I wanted my output should look like the one that the video liked in the second image. I search on the internet but didn't find any clear answer.

  • Does this answer your question? [How to pretty print nested dictionaries?](https://stackoverflow.com/questions/3229419/how-to-pretty-print-nested-dictionaries). Also [How to print out a dictionary nicely in Python?](https://stackoverflow.com/q/44689546/4046632) – buran Dec 15 '22 at 09:18
  • Also [Please do not upload images of code/data/errors.](//meta.stackoverflow.com/q/285551) – buran Dec 15 '22 at 09:19
  • 1
    Please provide enough code so others can better understand or reproduce the problem. – Community Dec 15 '22 at 17:27

1 Answers1

0

I got the way to Display Dict in Json format. There is a Chrome Extension named "JSON Viewer" which help to convert single line of python Dict key-values into JSON web format.