Amazon Athena json comparison

I have two tables, one with json and the other with corresponding flattened output Now, I need to compare the key of the nested field to the column values of another table in Athena Ex: table 1 method struct Table2 Type is the column name in which type 1 and type2 are values

Can any one help pls ?