Added some JSON manipulation to store retrieved mementos.