Add support for loading and saving clusters as JSON.