code: public static String toJSON(Map<String, ? extends CacheConfig> config) throws IOException {
          return new CacheConfigSupport().toJSON(config);
      }
docs: Convert current configuration to JSON format
  
  @param config object
  @return json string
  @throws IOException error