import json

read = open("entities.txt", "rb")
write =  open("pages/data/entities.json", "wb")

entities = []
for line in read:
	values = line.split("|")
	name = values[0]
	code = values[1]
	entities.append({'name': name, 'code': code})

json.dump(entities, write)
e29c6bc8d9341cd4e0a08751d39ff17a7105a5c9
<mask token>

<mask token>
for line in read:
    values = line.split('|')
    name = values[0]
    code = values[1]
    entities.append({'name': name, 'code': code})
json.dump(entities, write)

<mask token>
read = open('entities.txt', 'rb')
write = open('pages/data/entities.json', 'wb')
entities = []
for line in read:
    values = line.split('|')
    name = values[0]
    code = values[1]
    entities.append({'name': name, 'code': code})
json.dump(entities, write)

import json
read = open('entities.txt', 'rb')
write = open('pages/data/entities.json', 'wb')
entities = []
for line in read:
    values = line.split('|')
    name = values[0]
    code = values[1]
    entities.append({'name': name, 'code': code})
json.dump(entities, write)

import json

read = open("entities.txt", "rb")
write =  open("pages/data/entities.json", "wb")

entities = []
for line in read:
	values = line.split("|")
	name = values[0]
	code = values[1]
	entities.append({'name': name, 'code': code})

json.dump(entities, write)