Python for Network Engineers

How to Read and Write Json Files

By George El. • February 2019 • Reading time: 2 minutes

In this post, I will show how to read, write and do operations on json data. I assume the I have the following json file. The first step is to make sure that this is valid json. There are many online validators, this is the one I recommend: https://jsoneditoronline.org/ This can also prettify you json to make it more readable.