public static ObjectMapper OBJECT_MAPPER = new ObjectMapper();
static {
OBJECT_MAPPER.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
}
public static Object loadJson(@Name("url") String url, Map<String,Object> headers, String payload) {
<BUG>try {
InputStream stream = Util.openInputStream(url, headers, payload);</BUG>
String data = new Scanner(stream, "UTF-8").useDelimiter("\\Z").next();
return OBJECT_MAPPER.readValue(data, Object.class);
} catch (EOFException eof) {

public static ObjectMapper OBJECT_MAPPER = new ObjectMapper();
static {
OBJECT_MAPPER.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);
}
public static Object loadJson(@Name("url") String url, Map<String,Object> headers, String payload) {
try {
FileUtils.checkReadAllowed(url);
InputStream stream = Util.openInputStream(url, headers, payload);
String data = new Scanner(stream, "UTF-8").useDelimiter("\\Z").next();
return OBJECT_MAPPER.readValue(data, Object.class);
} catch (EOFException eof) {
