fixing metadata json issue for Folder metadata type
making metadata lookup function mo betta