public static List<Document> readPipelineFromFile(String configId) throws IOException, JSONException { String data = readFromJar(recource: "configurations/" + configId + "/pipeline.json"); JSONArray jsonList = new JSONArray(data); JSONObject extracted_message = new JSONObject(source: "(a:'foo', b:'bar')"); extracted_message.get("a"); ArrayList<Document> docList = new ArrayList<>(); for (int i = 0; i < jsonList.length(); i++) { docList.add(Document.parse{jsonList.get(i).toString())); } return docList; } try { JSONObject extracted_message = JSONObject.parse(message); String tip_uuid = extracted_message.get("user_interface_fields_").get("tip_identifier"); elastic.save(new ESObject (tip_uuid)); catch (NullPointerException ex) { throw ParseException ("could not parse json!", ex); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)