  Measurements of spectra of identified particles produced in jets represent an
important tool for understanding the interplay of various hadronisation
mechanisms which contribute to particle production in the hot and dense medium
created in ultra-relativistic heavy-ion collisions. In this contribution, we
present the measurements of the pT spectra of {\Lambda} baryons and K0S mesons
produced in charged jets in Pb--Pb collisions at sqrt(sNN) = 2.76 TeV and in
p--Pb collisions at sqrt(sNN) = 5.02 TeV. The results are obtained with the
ALICE detector at the LHC, exploiting the excellent particle identification
capabilities of this experiment. Baryon-to-meson ratios of the spectra of
strange particles associated with jets are studied in central collisions and
are compared with the inclusive ratios.
