Particle acceleration in solar flares with imaging-spectroscopy in soft X-rays