title: Can I GSON deserialize a variable name which includes a hyphen in Java?
body: <p>I am using GSON in my app. I have the following JSON response:</p>
  
  <pre><code>{
    "success":true,
    "person-name": "John"
  }
  </code></pre>
  
  <p>So, I am creating a class like this:</p>
  
  <pre><code>class Person {
      boolean success;
      String person-name;
  }
  </code></pre>
  
  <p>However, I am unable to create a variable <code>person-name</code>. How can I solve this?</p>