Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
Represents the response from running a Flag request against Factual.

Author(s):
brandon
public class FlagResponse extends Response {

  
Constructor, parses from a JSON response String.
  public FlagResponse(InternalResponse resp) {
    super(resp);
    try {
      JSONObject rootJsonObj = new JSONObject(resp.getContent());
      Response.withMeta(thisrootJsonObj);
    } catch (JSONException e) {
      throw new RuntimeException(e);
    }
  }
  public String getJson() {
    return .getContent();
  }
New to GrepCode? Check out our FAQ X