import json


def update_table_json(entry):
	"""
	Inserts
	:param entry: json object to insert into the json array
	:return: True if it was inserted, False otherwise
	"""
	with open('assets/json/table.json') as table:
		data = json.load(table)

	if entry not in data:
		data.append(entry)
		with open('assets/json/table.json', 'w') as table:
			json.dump(data, table)
			return True
	return False