Convert between different types of JSON

It's a follow on / related to this thread How to receive a phone number by MQTT then perform an Excel style vlookup to obtain a caller name?