Seed data in JSON files

#1

Currently I have a json file that looks like this in order to provision seed data:

{
“id”: “TubingIsJ552875EUE”,
“name”: “Tubing Is J552875EUE”
}

Is it possible to put several seed data objects in the same file?

Thanks

0 Likes

#2

Yes, you just have to wrap them in an array like:

[{
“id”: “TubingIsJ552875EUE”,
“name”: “Tubing Is J552875EUE”
},{
“id”: “OTHER”,
“name”: “Tubing Is NEW”
}]

0 Likes