Every line of 'extract data from json python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
5 def extract_object(data, path): 6 for key, value in data.items(): 7 subpath = path + [key] 8 if isinstance(value, six.string_types): 9 if key in ["label", "reverse", "description", "plural"]: 10 comment = ".".join(subpath) 11 yield (None, None, [value], [comment]) 12 if isinstance(value, dict): 13 for res in extract_object(value, subpath): 14 yield res