Check required fields before trusting data.
json.loads
raise ValueError
import json def parse_block(raw): # TODO pass