9 lines
176 B
Plaintext
9 lines
176 B
Plaintext
|
# -*- mode: python -*-
|
||
|
# name: file-read
|
||
|
# key: fr
|
||
|
# --
|
||
|
with open($0, 'r') as file:
|
||
|
try:
|
||
|
data = json.load(file)
|
||
|
except (json.JSONDecodeError):
|
||
|
data = {}
|