Maybe `'[' + JSON.stringify(nameObject.name) + ']'` here?