One learning tool for doing this is to play along with recordings of other Jazz musicians. There are courses of studies that use recorded jazz groups leaving out one instrument. This one instrument might be a piano part, bass part, trumpet part, etc. Then, it is up to you and your instrument to fill-in the missing part. Push play on the slider bar below.
Jazz is a subjective art.
If you like what you are playing, then play it. This is Jazz. One thing to keep in mind. Jazz is like several painters working on the same painting at the same time. Imagine yourself in a group of painters about to begin an abstract painting of anger and loneliness, fear and hurt, joy and freedom, love and tenderness, or desire and frustration.