title: Parse JSON request without creating a class
body: <p>In a Spring MVC controller method, I have a JSON input (request body) with just one field: <code>{"version":3}</code>. I can get this value like this:</p>
  
  <pre><code>@RequestMapping
  public void myMethod(@RequestBody MyJsonRequest myJsonRequest) {
  
      int version = myJsonRequest.version;
  
      //...
  }
  </code></pre>
  
  <p>But I have to create <code>MyJsonRequest</code> class with a <code>version</code> field. How can I get the <code>version</code> value without creating a new class?</p>