Empty ingredient list are objects and not array in the data dump

Things that has been reported already before.
PetiteEclipse
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon Dec 22, 2025 1:49 pm
Contact:

Empty ingredient list are objects and not array in the data dump

Post by PetiteEclipse »

Hello hello,

It's my first time here, please tell me if I'm doing anything wrong or if this should be posted somewhere else !

I've been trying to parse the Factorio data dumped with --dump-data for funny projects on my side, and it appears that empty arrays are dumped as json objects instead of arrays.
For example, the biter egg recipe:

Code: Select all

"ingredients":
{},
Or the fluid-unknown base-color:

Code: Select all

"base_color":
{},
Therefore, when attempting to parse it, I'm expecting an array and get hit with an invalid type.
Perhaps there is a --dump-data option I'm missing here ? Or there might be others reasons I'm unaware of to have it this way ?

Thanks in advance, and a lot of thanks for the game, cheers !
- Eclipse
Rseding91
Factorio Staff
Factorio Staff
Posts: 16414
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Empty ingredient list are objects and not array in the data dump

Post by Rseding91 »

Thanks for the report. This is a duplicate of 109077
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Duplicates”