title: How to prevent Gson serialize / deserialize the first character of a field (underscore)?
body: <p>My class:</p>
  
  <pre><code>class ExampleBean {
     private String _firstField;
     private String _secondField;
     // respective getters and setters
  }
  </code></pre>
  
  <p>I want to appear as follows:</p>
  
  <pre><code>{
       "FirstField":"value",
       "SecondField":"value"
  }
  </code></pre>
  
  <p>And not like this</p>
  
  <pre><code>{
       "_FirstField":"value",
       "_SecondField":"value"
  }
  </code></pre>
  
  <p>I initialize the parser as follows:</p>
  
  <pre><code>GsonBuilder builder = new GsonBuilder();
      builder.setDateFormat(DateFormat.LONG);
      builder.setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE);
      builder.setPrettyPrinting();
      set_defaultParser(builder.create());
  </code></pre>
  
  <p>I could see the <a href="http://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/index.html" rel="noreferrer">API</a> and in the <a href="https://sites.google.com/site/gson/gson-user-guide#TOC-JSON-Field-Naming-Support" rel="noreferrer">documentation</a> of "FieldNamePolicy" but I am surprised that not give the option to skip "_"
  I also know I can use the annotation...</p>
  
  <pre><code>@ SerializedName (" custom_naming ")
  </code></pre>
  
  <p>...but do not want to have to write this for alllllll my fields ... </p>
  
  <p>It's very useful for me to distinguish between local variables and fields of a class. :(  Any Idea?</p>
  
  <p><strong>EDIT:</strong> There would be many obvious solutions, (inheritance, gson overwriting methods, regular expresions). My question is more focused on whether there is a native solution of gson or a less intrusive fix?</p>
  
  <p>Maybe we could propose as new FieldNamePolicy?</p>