title: How to force FlexJson in java to deserialize a json object to a string?
body: <p>So I'm getting an object back from a server that looks like this:</p>
  
  <pre><code>{
      "Status": {
          "stuff":"stuff...";
          "morestuff":"morestuff...";
          };
      "Data": { ... another object ... };
  }
  </code></pre>
  
  <p>However, when I get this object back, I want to deserialize it to a java class that looks like this:</p>
  
  <pre><code>class Response
  {
      public StatusObject Status;
      public String Data;
  }
  </code></pre>
  
  <p>But FlexJson sees an object as the data attribute and then tries to cast a HashMap to my Data string. If I get a response back with 'null' as the Data attribute, everything works just fine (since you can assign null to a String).</p>
  
  <p>How do I go about telling FlexJson to not try to make a HashMap out of the Data attribute and just take it as a String (even if it is a JSON object)?</p>
  
  <p>Right now my deserialization line of code looks like this:</p>
  
  <pre><code>formattedResponse = new JSONDeserializer&lt;network.Response&gt;()
                      .use( "values", network.Response.class )
                      .deserialize(JSONString, network.Response.class);
  </code></pre>
  
  <p>Thank you for any help!</p>