code: func ConfigFromJSON(reader io.Reader) (*Config, error) {
  	jsonBytes, err := ioutil.ReadAll(reader)
  	if err != nil {
  		return nil, err
  	}
  	var obj map[string]interface{}
  	if err := json.Unmarshal(jsonBytes, &obj); err != nil {
  		return nil, err
  	}
  	return &Config{obj}, nil
  }
docs: // ConfigFromJSON creates a Config instance from a JSON io.reader.