Store the object as a json