Convert a string into a MD5. If the string is Valid JSON, parse it, sort the keys, and then turn it into a MD5.