implemented JSON config saver