[jQuery] how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

[jQuery] how to replace all the '[]' to be '' in $.SortSerialize('MDEExportedList').hash

 I use $.SortSerialize('MDEExportedList').hash.replace('[]','')
  but only the first one is replaced.
  Who can help me?