buildLink.js add a line

pStr = JSON.stringify(jsonStr);