code: func NewRulerWithJson(jsonstr []byte) (*Ruler, error) {
  	var rules []*Rule
  
  	err := json.Unmarshal(jsonstr, &rules)
  	if err != nil {
  		return nil, err
  	}
  
  	return NewRuler(rules), nil
  }
docs: // returns a new ruler with filters parsed from JSON data
  // expects JSON as a slice of bytes and will parse your JSON for you!