title: JSON Parser returning null for fieldname
body: <p>I have the following code and when I run it with a valid JSON,it returns null for fieldname.
  I have been scratching my head over this for hours now.      </p>
  
  <pre><code>    JsonFactory jFactory=new JsonFactory();
      JsonParser parser=jFactory.createJsonParser(bytes);
  
      while (parser.nextToken() != JsonToken.END_OBJECT) {
          String field_name=parser.getCurrentName();
          System.out.println("fieldName: "+field_name);
          parser.nextToken();
          if(field_name.equals("value")){
              System.out.println("value found");
              data=parser.getBinaryValue();
              out.write(new String(data));
          }//if
      }//while
      parser.close();
  </code></pre>
  
  <p>JSON sample:</p>
  
  <pre><code>      {
       "mimetype" : "text/plain",
       "value" : "c2FzCg=="
        }
  </code></pre>