decode the string in javascript code example Example: javascript parse to string var bar = foo.toString();