```python
#!/usr/bin/env python3
handle = open('file.json', 'r+t')
for line in handle:
content = handle.readline()
handle.close()
import json
content = json.loads(content)
out = {}
for i in range(len(content)):
out[content[i]['name']] = content[i]
def print_dict(dictionary):
for i in range(len(dictionary.keys())):
print("Key" + list(dictionary.keys())[i] + " has value " + list(dictionary.values())[i])
print("Thanks for using our function that prints dictionaries!")
```
# file.json will be:
```json
[
{'name': 'India',
'currency': 'INR',
'TLD': '.in'
},
{'name': 'Poland',
'currency': 'PLN',
'TLD': '.pl'
}
]
```