js encode string code example
Example 1: how to encode a string in javascript
var uri = "my test.asp?name=ståle&car=saab";
var res = encodeURI(uri);
Example 2: type script encode url
var encodeURI = encodeURIComponent("&")
Example 3: jq unencode string
# -r enable raw output
jq -r .[0].string FILE.json