You can use the Debug node to get GLSL code. Not sure what you wanna do with JSON (everything is described as JSON but you'd need to interpret it in your engine).