Place the jujubes in a large bowl and cover with water. Soak for 10 minutes, then gently rub their skins to remove any dust. Drain and discard the water. Halve the jujubes and remove the pits.
Rinse the goji berries under cold water, gently rubbing to remove any surface dirt.
Combine the jujubes, goji berries, and ginger in a small saucepan and add the water.
Bring to a boil over medium-high heat. Reduce to medium-low and simmer for 10 minutes.
Strain through a small sieve, pressing on the jujubes to extract as much liquid as possible.
Stir in the brown sugar until dissolved. Taste and add more sugar if needed. Serve hot.