RichThesaurus
just the ticket
vs
just what the doctor ordered
just the ticket
noun
A most appropriate or suitable action or object in a given situation.
just what the doctor ordered
How often have the words
just the ticket
and
just what the doctor ordered
occurred in a corpus of books?
(source:
Google Ngram Viewer
)