title: How to include parent class fields in json response using struts 2 json plugin
body: <p>I have following implementation</p>
  
  <pre><code>public abstract class BaseAcion extends ActionSupport {
      private String result;
      private String message;
  
      //getters, setters
  }
  
  public class MyAction extends BaseAction {
      private String myFirstField;
      private String mySecondField;
  
      public String execute() {
           ...
           myFirstField = "someValue";
           mySecondField = "someOtherValue";
           ...
           result = SUCCESS;
           message = "Some message here";
           ...
           return result;
      }
  
      //methods, getters, setters
  }
  </code></pre>
  
  <p>I have used struts2-json plugin, action mapping is</p>
  
  <pre><code>&lt;package name="my-package" namespace="/" extends="json-default" &gt;
      &lt;action name="myAction" class="MyAction"&gt;
          &lt;result type="json"&gt;&lt;/result&gt;
      &lt;/action&gt; 
  &lt;/package&gt;
  </code></pre>
  
  <p>The response that I receive is something like this.</p>
  
  <pre><code>{
      "myFirstField":"someValue",
      "mySecondField":"someOtherValue"
  }
  </code></pre>
  
  <p>I want to get "result" and "message" fields in response as well. </p>
  
  <p>How can I include BaseAction fields in json response?</p>