To reproduce: Export settings, copy paste into a lua code checker, immediate errors. Ignoring the errors and attempting to add the preset via custom mod crashes on load.
The issue seems to be exporting puts double quotes around everything, and the colons instead of equal signs? For example what should look like:
[
{type="group", name="foobar"},
{type="item", name="foo", quantity=[number], next="x[number]", quality="bar"}
]
Instead is printed like:
[
{"type":"group", "name":"foobar"},
{"type":"item", "name":"foo", "quantity":1, "next":"x[number]", "quality":"bar"}
]
Took me far longer than I'd like to admit to sort out what was incorrect with the preset I was trying to import. It likely wouldn't be a huge fix, but would save the clueless end user a lot of time fixing their code.
(clueless referring to me, probably should actually learn lua syntax at some point)