initial implementation of outputing json and launching node within java