def process_pad_frame(self,<EOL>id=None,<EOL>msg=None):
<EOL>df = json_normalize(msg)<EOL>dt = json.loads(df.to_json())<EOL>flat_msg = {}<EOL>for k in dt:<EOL><INDENT>new_key = "<STR_LIT>".format(k)<EOL>flat_msg[new_key] = dt[k]["<STR_LIT:0>"]<EOL>if new_key not in self.pad_keys:<EOL><INDENT>self.pad_keys[new_key] = k<EOL><DEDENT><DEDENT>dt["<STR_LIT>"] = id<EOL>self.all_pad.append(dt)<EOL>log.debug("<STR_LIT>")<EOL>log.debug(self.pad_keys)<EOL>log.debug(self.all_pad)<EOL>log.debug("<STR_LIT>")<EOL>return flat_msg<EOL>
process_pad_frame

        Convert a complex nested json dictionary
        to a flattened dictionary and capture
        all unique keys for table construction

        :param id: key for this msg
        :param msg: pad frame for packet