Duplicate keys in .json

I had an error in my mod, so I thought to get some json file through jsonlint.
It turned up the following:

"mixins": "file(egg_box_ghost.json)",
"mixins": "stonehearth:mixins:food_decay",

SyntaxError: Duplicate key ‘mixins’ on line 6

jsonlint doesn’t like me doing this. Will stonehearth make a fuss about this, and if so, how do I mixin multiple files in the correct way?

Duplicated keys will not error in stonehearth, but the game will simple ignore one of them as soon as it reads the second one.
For multiple mixins, you can make the value of the key be an array, as such:

“mixins”: [

1 Like