Lines Matching refs:obj
23 def follow_path(obj, path): argument
24 cur = obj
37 def ensure_path(obj, path): argument
38 cur = obj
50 def apply(self, obj, val): argument
51 cur, key = ensure_path(obj, self)
56 def apply(self, obj, val): argument
57 cur, key = follow_path(obj, self)
63 def apply(self, obj): argument
64 cur, key = follow_path(obj, self)
70 def apply(self, obj, *args): argument
71 cur, key = ensure_path(obj, self)
106 obj = json.load(f, object_pairs_hook=collections.OrderedDict)
108 obj = json.load(sys.stdin, object_pairs_hook=collections.OrderedDict)
111 p[0].apply(obj, *p[1:])
115 json.dump(obj, f, indent=2, separators=(',', ': '))
118 print(json.dumps(obj, indent=2, separators=(',', ': ')))