code: protected static JsonInput loadJsonFromResourceOrFile(String resource) {
      try {
        return new Json().newInput(readFileOrResource(resource));
      } catch (RuntimeException e) {
        throw new GridConfigurationException("Unable to read input", e);
      }
    }
docs: load a JSON file from the resource or file system. As a fallback, treats {@code resource} as a
  JSON string to be parsed.
  
  @param resource file or jar resource location
  @return A JsonObject representing the passed resource argument.