First version of jsonToMessage file containing jsonToMessage(pie, jsonData)
function. The implementations and jsonData interpretations are tentative.