url encode jquery code example
Example 1: urlencode jquery
var encoded = encodeURIComponent(str);
Example 2: jq unencode string
# -r enable raw output
jq -r .[0].string FILE.json
var encoded = encodeURIComponent(str);
# -r enable raw output
jq -r .[0].string FILE.json