title: (invalid) How to use the "this" keyword in JSON
body: <p>How to use the "this" keyword in the JavaScript object notation (JSON) in the example below?</p>
  
  <pre><code>{
      firstName: "Foo",
      lastName: "Bar",
      fullName: function () {
          return this.firstName + " " + this.lastName;
      }
  }
  </code></pre>
  
  <p>The code above neither work with the <code>this</code> keyword nor without it.
  Why is that? The only working solution is to assign the JSON object to a variable and to use the variable in the code.</p>
  
  <p>Is there something similar to the "this" keyword that can be used instead of it?</p>
  
  <p>Any suggestions are welcome.</p>
  
  <p><em><strong>edit:</em></strong> As stated in the comments below, it's not JSON but "javascript object literal". Thank you for that hint. Nevertheless, my question still remains valid (for the javascript object literal).</p>
  
  <p><em><strong>invalid:</em></strong> The code above works as expected, thus fullName() returns "Foo Bar".</p>