public List<LineageRecord> extractFromJson() throws JSONException {
  List<LineageRecord> results=new ArrayList<>();
  List<String> inputs=parseInputs();
  for (  String s : inputs) {
    results.add(construct(s,"source","read",null,null,null,null));
  }
  List<String> outputs=parseOutputs();
  for (  String s : outputs) {
    results.add(construct(s,"target","write",null,null,null,null));
  }
  return results;
}

public List < LineageRecord > extractFromJson ( ) throws JSONException { List < LineageRecord > results = new ArrayList < > ( ) ; List < String > inputs = parseInputs ( ) ; for ( String s : inputs ) { results . add ( construct ( s , "source" , "read" , null , null , null , null ) ) ; } List < String > outputs = parseOutputs ( ) ; for ( String s : outputs ) { results . add ( construct ( s , "target" , "write" , null , null , null , null ) ) ; } return results ; }
extract all related info from json
