title: Create custom objects on the fly
body: <p>I would like to know if there's a way to create objects on the fly or should I say by not using a Class object and its properties. The normal way I'm doing it is this.</p>
  
  <pre><code>ApiHelper apiHelper = new ApiHelper();
  User user = new User();
  user.Firstname = "FirstName";
  apiHelper.send("", user);
  </code></pre>
  
  <p>I would like to accomplish this on my code snippet:</p>
  
  <pre><code>ApiHelper apiHelper = new ApiHelper();
  apiHelper.send("", new { Firstname = "Firstname"});
  </code></pre>
  
  <p>The second paramter on send() has a data type of Object and this Object is later on converted to json string.</p>
  
  <p>This is a c# example, is there a counterpart of this in java? I kind of think that if I use the first approach when creating objects, I have to a lot of classes just to comply with the objects that I need to build, So I was hoping to if I can do it in java using the 2nd approach. </p>