joelvh / json2json

Transform (reformat) JSON structures from one to another using JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module json2json

shachindrasingh opened this issue · comments

Hi,
I want to use this json2json for message transformation, I had install this model using npm.
but still i am getting the error "Cannot find module json2json".
One more thing that i had create this application using strongloop framework.
thanks.

This issue was written some time ago, but I ran into this while trying to require json2json in a node project. I figured I'd document how to load the module for anyone who might also have trouble.

Install coffee-script with npm install coffee-script. In the file in which you want to use json2json, first add require('coffee-script').register();. You can now add require('json2json2') to have the module load properly.

@chazzlabs thanks for the info. Did the latest merge from PR #16 address this? If not, can you submit a PR with your notes added to the README? Thanks!

@joelvh Looks good! I was able to install and run json2json in a fresh project successfully with no other dependencies. Thank!

Great, thanks @chazzlabs