title: Retrofit 2 API Can I use local file path or json string instead of url?
body: <p>Hello I am working on an <code>Android</code> App which uses <code>retrofit</code> API getting response from server. Retrofit Automatically parse the json response and creates objects of <code>POJO</code> class. I am storing that json into sqlite and if internet is not connected call the json from sqllite, facing difficulty have to parse json manually.</p>
  
  <p>Is there any way I use retrofit library to parse json and make pojo from json string or file path?My code is here to fetch from url:</p>
  
  <pre><code>@FormUrlEncoded
  @POST("getResponse")
  Observable&lt;UserResponse&gt; getResponse(@Field("token") String token);
  </code></pre>
  
  <p>I want something like this if internet is not connected.</p>
  
  <pre><code>@FromStringEncoded
  Observable&lt;UserResponse&gt; getResponseOffline(@Field("token") String token);
  </code></pre>
  
  <p>Thanks.</p>