Add convertDictToJSON utility function.