You can use the function replaceAll(). Read more here: https://docs.mendix.com/refguide/string-function-calls
replaceAll('{"mail": "test@test.com"}', '"', '')