Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.factual.driver;
 
 import  org.json.JSONException;
 import  org.json.JSONObject;

Represents the response from running a Flag request against Factual.

Author(s):
brandon
public class FlagResponse extends Response {
	private String json = null;

Constructor, parses from a JSON response String.

Parameters:
json the JSON response String returned by Factual.
	public FlagResponse(String json) {
		this. = json;
		try {
			JSONObject rootJsonObj = new JSONObject(json);
			Response.withMeta(thisrootJsonObj);
catch (JSONException e) {
			throw new RuntimeException(e);
		}
	}
	public String getJson() {
		return ;
	}
New to GrepCode? Check out our FAQ X