Here is my JS function:
var fs = require(“fs”)
var text = fs.readFileSync("./org.eclipse.smarthome.core.thing.Thing.json").toString()
var result = transform(“JSONPATH”, “$.device”, text)
I am not sure I am going about this in the right way…help please!