The method fromJson as defined below works beautifully, but I\'d like to convert it into a function so I can use it in a UDF on a Spark data frame.
fromJson
How d