Let's assume you're using a function (in this case, easy_api.basic_item)
easy_api.basic_item({ --initiate the new "info" input
-- random variables
icon = ...
stack_size = ...
ingredients = ...
-- your question
name = [name]
}) -- and close the function
Now, how do you use this in something else?
easy_api.basic_item({ --initiate the new "info" input
-- random variables
icon = ...
stack_size = ...
name = ...
-- your question
ingredients = { -- since ingredients is an array...
{[other names],[other amounts]}
{[other names],[other amounts]}
{[name],[amount]} -- and this is where your question is answered
} -- closing the ingredients array
}) -- and close the function