A simple Node.js script to transform JSON data into a different structure. This script is particularly useful for flattening nested JSON arrays and mapping them into a new structure.
- Node.js
- fs (File System) module in Node.js
- Clone the repository to your local machine.
git clone https://github.com/fonckchain/json-transformer.git
- Modify the
inputFile
variable intransform.js
to the path of your input JSON file. - Modify the
outputDir
variable intransform.js
to the path of your desired output directory. - Run the script with:
node transform.js
This project is licensed under the MIT License.
If you have any questions, feel free to contact me at [email protected]