Get all taxonomy terms from the Get_terms table with a specific table key

I have below the code to extract all the terms from several taxonomies,

$ taxonomies = array ("ingredients", "category", "courses");
$ args = array (
& # 39; hide_empty & # 39; => 0
)
$ terms = get_terms ($ taxonomies, $ args);
$ AutoComplete = array ();

foreach ($ terms as $ key => $ value) {
array_push ($ autocomplete[$value->taxonomy] = [$value->name])
}
echo "
";
echo json_encode ($ AutoComplete);
echo "

";
?>

It works well and gives me the result of

{ "Ingredients":["Cumin Seeds"],"Category":["Uncategorized"], "Course":["Main Course"]}

The problem is that all taxonomies have multiple terms, but only returns one – the last term.

Am I missing something here?

Thank you
saq