I don't can, but when I am making chicken broth I always do that and it gives the broth such a nice color I have been accused of using food coloring.
Technically, I have. Yellow onion skins are a traditional yellow dye source and all commercial food colorings are dyes that are more or less safe to eat.
Great tip ... I will try it very soon. Thank you!