Resolve issue #323 regarding the saving of json dict.