code: func NewJSONSource(data []byte) (InputSourceContext, error) {
  	var deserialized map[string]interface{}
  	if err := json.Unmarshal(data, &deserialized); err != nil {
  		return nil, err
  	}
  	return &jsonSource{deserialized: deserialized}, nil
  }
docs: // NewJSONSource returns an InputSourceContext suitable for retrieving
  // config variables from raw JSON data.