Power Query: Combining JSON with slightly different schemas

I recently had to take in input from a web service. The payload was a JSON array, but the objects inside the array were all of slightly different schema. Some properties existed on some objects, but not all. I had to combine all of them into one table in Power Query. However, because Power Query infers the schema from just a sample of the first few records, it was erroring when it encountered the…