I have to stringify some parameter to put it in a http patch request my method is something like this
let param = JSON.stringify({
code : this.code,
name : this.name,
fieldName: this.data
});
In that case I have a param like this:
code:3,name:'asdf',fieldName: 'col'
But I want the value of fieldName ond not the word fieldName... Is there a method to expand or evaluate this parameter name?