proud-pizza-80589
10/13/2022, 3:06 PMOutput<string>[]
how the hell do i JSON.stringify it so i get a single string with the json serialised into itconst list: string[] = [];
for (const x of resourceList) {
interpolate`${x.y}@${x.z}`.apply((z) => {
list.push(z);
});
}
const json = JSON.stringify(list)
my array is either emtpry or i end up with a Output<string>[] which can’t be stringified as ismillions-furniture-75402
10/13/2022, 4:39 PMproud-pizza-80589
10/13/2022, 4:40 PM'static-nodes.json': all(validatorWallets.map((wallet) => wallet.wallet.enode)).apply((enodes) => {
return JSON.stringify(
enodes.map((enode, index) => `enode://${enode}@besu-${index + 1}:30303`),
null,
2
);
}),