Creates a new configuration source key for json files.

@param name name of the json file.
@return a new configuration source key instance for json files
547056
public static final ConfigurationSourceKey jsonFile(final String name){
		return new ConfigurationSourceKey(Type.FILE, Format.JSON, name);
	}
681921
private function createConfigObject($name, $data, $json)
    {
        // Load corresponding class and get config array
        $class_name = self::class . '\\Config' . ucfirst(strtolower($name));

        if (!class_exists($class_name)) {
            $class_name = self::class . '\\ConfigData';
        }

        return new $class_name($data, $json);
    }
1333057
private VolumeCreateConfig add(String name, JsonObject value) {
        if (value != null) {
            createConfig.add(name, value);
        }
        return this;
    }
380957
public static <K,V> Storage<K,V> createTreeMapStorage(String name){
		return new Storage<K, V>(name, new MapStorageWrapper<K, V>(new TreeMap<K, V>()));
	}
1049939
public static Rule create(String repositoryKey, String key, String name) {
    return new Rule().setUniqueKey(repositoryKey, key).setName(name);
  }
107416
public static Key createKey(Key parent, Class<?> clazz, String name) {
		return KeyFactory.createKey(parent, getKind(clazz), name);
	}
1021720
public static Application create(final String name) throws Exception{
    	final Map<String, Object> params = new HashMap<String, Object>();
    	params.put("name", name);
    	
    	return create(params);
    }
539346
public JsonObject optJsonObject(String name) {
        JsonElement el = null;
        try {
            el = get(name);
        } catch (JsonException e) {
            return null;
        }
        if (!el.isJsonObject()) {
            return null;
        }
        return el.asJsonObject();
    }
158330
public InputStream openConfig(String name) {
        InputStream is = null;
        String configPath = configHome + "/" + name;

        try {
            return FileUtils.readResource(configPath);
        } catch (Throwable e) {
            LOG.debug("Config " + name + " (" + configPath + ") not found", e);
        }

        return is;
    }
46443
public JSONObject getJsonConfig(String name) throws IOException, 
                                                       JSONException {
    if (name.endsWith(".xml")) {
      URL url = getResource(MATERIALIZEDJSON);
      if (url != null) {
        InputStream in = url.openStream();
        if (in != null) {
          JSONObject json = instantiateJsonObject(in);
          if (json.has(xmlToThrift(name))) {
            return json.getJSONObject(xmlToThrift(name));
          } 
        }
      }
    }
    return null;
  }
663916
@SuppressWarnings("unchecked")
    public <R> R get(@NotNull final String name) {
        // do some conversions for JsonObject/JsonArray
        Object o = context.get(name);

        if (o instanceof Map) {
            return (R) new JsonObject((Map) o);
        }
        if (o instanceof List) {
            return (R) new JsonArray((List) o);
        }
        return (R) o;
    }
13904
public JsonArray optJsonArray(String name) {
        JsonElement el = null;
        try {
            el = get(name);
        } catch (JsonException e) {
            return null;
        }
        if (!el.isJsonArray()) {
            return null;
        }
        return el.asJsonArray();
    }
105923
public JsonWriter writeName(String name) throws IOException {
        indent();
        writer.write(escape(name));
        writer.write(":");
        if (prettyPrint) {
            writer.write(" ");
        }
        willWriteValue = true;
        return this;
    }
265950
protected static Properties loadConfig(String name) {
    try {
      URL url = new URL(name);
      return loadConfig(url);
    } catch (Exception ex) {
      return loadConfig(new File(name));
    }
  }
1140806
public Group create(String name) {
        String url = WxEndpoint.get("url.group.create");
        String json = String.format("{\"group\":{\"name\":\"%s\"}}", name);
        logger.debug("create group: {}", json);
        String response = wxClient.post(url, json);

        return JsonMapper.defaultUnwrapRootMapper().fromJson(response, Group.class);
    }
306905
public Cache createCache(String name) throws CacheException {
		SynchronizedCacheConfiguration config = new SynchronizedCacheConfiguration();
		return createCache(name, config, Cache.SYN_CACHE);
	}
69564
protected function createJsonConfig($name)
    {
        if ($this->files->exists($path = $this->getJsonPath())) {
            $this->error('Widget json config already exists!');

            return;
        }

        $stub = $this->files->get($this->getJsonStubPath());
        $stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
        $stub = $this->replaceFQCN($stub, $name);
        $stub = $this->replaceView($stub);

        $this->files->put($path, $stub);

        $this->info('Json config created successfully.');
    }