added JSON options to save, update functions