title: Json element value returning null though found in request body
body: <p>I am trying to pass some json data </p>
  
  <pre><code>{  
     "name":"srk",
     "age":25,
     "interests":"programming"
  }
  </code></pre>
  
  <p>through ajax and fetching the request body into play controller as shown below.</p>
  
  <pre><code>@BodyParser.Of(BodyParser.Json.class)
      public Result example(){
        JsonNode jsonNode = request().body().asJson();
        Logger.info("requestBody = "+ jsonNode);
      }
  </code></pre>
  
  <p>The above logger prints the request payload sent during the request exactly
  like below:</p>
  
  <pre><code>{"name": "srk", "age":25, "interests" : "programming"}
  </code></pre>
  
  <p>But when I try to print age they it is showing up as null.</p>
  
  <pre><code>String age = jsonNode.findPath("age").textValue();
  Logger.info("age= "+ age);
  </code></pre>
  
  <p>This is printing <code>age= null</code></p>
  
  <p>Any ideas would help.</p>