I planted Parsley this year just to attract the Black Swallowtail Butterfly and it worked! I actually had so many caterpillars that they stripped my parsley bare and had nothing to eat. I had to go to the grocery store and buy parsley just to feed them. Every day I would put fresh parsley in a very small vase of water just for the caterpillars.
Out of about 15 caterpillars on my parsley I only know where 5 of the chrysalises are. The little cats were very good at crawling off of the parsley and hiding to pupate.
The chrysalis below blends right into the plant is is on and if you didn't know where to look for it you would not see it.