I\'m a newb to back-end code and I\'m trying to create a function that will respond to me a JSON string. I currently have this from an example
function rando
var objToJson = { }; objToJson.response = response; response.write(JSON.stringify(objToJson));
If you alert(JSON.stringify(objToJson)) you will get {"response":"value"}
alert(JSON.stringify(objToJson))
{"response":"value"}