Tuesday, 9 May 2017

Put json file content in an array unsing node JS

So I have a dir where I have several Json files named by "the day and hour of creation".JSON . I want to create an array of all json content, meaning

FIle1.json

File2. json . . . FIlen.json

Should look [{FIle1.json (content)}, {File2.json},......{Filen.json}]

I'm a newbie in Node.json any help is welecomed

Thank you guys



via Marou Aityahia

No comments:

Post a Comment