Convert json to keyvalue pair key=value for first level json. It will only convert first level nested. It will not print out array objects.
npm install splunkkeyvalue --save
var splunkkeyvalue = require('splunkkeyvalue');
var json = {
id: 123456,
name: "frank",
last: "smith"
};
var string = splunkkeyvalue.jsonToSplunk("",json);
console.log(string);
npm test
Very simple script.
- 0.2.0 Initial release