Saved the sources into shared preference as JSON string.