In this short post you can find how to pretty print and analyze JSON in JupyterLab:
(1) Interactive mode
expanded
from IPython.display import JSON
JSON(json_object, expanded=True)
collapsed
from IPython.display import JSON
JSON(json_object)
(2) Pretty print with with 2 tabs
print(json.dumps(json_object, indent=2))
Pretty pring long JSON
from IPython.display import JSON
import yfinance as yf
company = yf.Ticker("MSFT")
json_object = company.info
JSON(json_object, expanded=True)
Final result is highlighted JSON which allow :