I have two JSON files, and I am trying to build a third file, based on keys from one and values from the other. I have previously been given a function that was meant to do this