Interview Questions

Python - Read Json Data from File

The following code is used to read json data from a file.

import json
with open('template.json', 'r') as json_file:
            jdata = json.dumps(json_file)
            print (jdata)