Added support for a safe JSON check on strings in utility.