LSEG Workspace event payloads can contain nested objects and arrays that are difficult to process directly. Write a function that converts one nested JSON object into a list of flat row objects.
Implement flatten_json(obj):
obj, a JSON object represented as a Python dictionary. Values may be dictionaries, lists, strings, numbers, booleans, or None... For example, {"quote": {"bid": 101}} becomes { "quote.bid": 101 }.None, preserving the path... Preserve input order when producing rows..def flatten_json(obj):