`var testResults = {api: this.id};` should work just as well.