I cannot find any built-in functions/modules in Node.JS to convert a Ruby hash into a JSON object. I am very familiar with the method of using Ruby to do this, e.g. see How to convert a ruby hash object to JSON?. I am hoping for something similar in Node.JS. Of course, any workaround would also be fine. E.g., is there a way to run embedded ruby in Node.JS? From the searching I've done, it does not seem like there is anything "out-of-the-box" to do this.
Any help/pointers would be greatly appreciated! Thanks!