Get single JSON property value from response JSON using Retrofit 2
<p>I am using Retrofit library (version 2.0.2 as of this writing). </p>

<p>I am making a GET call to a service which responds a big JSON object but I am only interested in one key:value pair in it.</p>

<p>How can I get just that instead of writing a whole new POJO class that matches the JSON response?</p>

<p>Example - </p>

<pre><code>{
  status_code: 34,
  status_message: "The resource you requested could not be found.",
  ...,
  ...
}
</code></pre>

<p>I need only status code value (34 here). </p>

<p>Please note, I am just giving an example of this JSON object here. The real one I am dealing with is huge and I care about only one key:value pair in it.</p>

<p>Thanks in advance.</p>