Soak the cranberries in apple juice and marinate for about 1 hour. Pour onto a sieve and drain. Put sugar and 75 ml water in a small pot. Bring to the boil over a high heat, simmer until the sugar caramelises until golden brown. Pour the caramel into a large pot. Peel, quarter and core the pears. Cut into small pieces.
Weigh 800 g pears and sprinkle with lemon juice. Mix pears, caramel, citric acid and vanilla pulp well in the pot with jam sugar. Bring to the boil while stirring over high heat. Simmer for about 5 minutes. Coarsely puree the jam with a hand blender. Add cranberries, pear brandy and star anise and let simmer for about 2 minutes. Pour the jam into clean, dry glasses, close them tightly and let them cool down