SHARE
TWEET

Untitled

a guest Aug 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def load_json(input_json):
  2.     with open(input_json, 'r') as l_json:
  3.         data = l_json.read().replace("@odata.context", "odataContext")
  4.         data = json.loads(data, object_hook=lambda d: namedtuple('data', d.keys())(*d.values()))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top