function map(key, value, output){ out.println("Map Js Started!"); var doc = null; try { doc = JSON.parse(value); } catch(ex) { out.println("Error Parsing Log: " + ex); } if (doc != null) { var result = {}; oKey.set(KEY); oValue.set(JSON.stringify(result)); out.println("Map Js Finished!"); output.write(oKey, oValue); } }