Answer the question
In order to leave comments, you need to log in
Why, after running json-concat, the output contains the contents of only one json, and not all jsons in the folder?
Hello!
I want to stitch all json's in a folder. Just objects next to each other.
Made a folder with test objects a.json, b.json and c.json with the same structure. Here is the start of a.json:
[
{
"header": "a1",
"date": "a2",
"body": "a3",
"link": "a4"
},
{
"header": "b1",
"date": "b2",
"body": "b3",
"link": "b4"
},
var jsonConcat = require("json-concat");
jsonConcat({
src: "./Testjoin/",
dest: "./Testjoin/result.json"
}, function (json) {
console.log('done');
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question