Fix: marshalJson error, when values contains map[interface{}]interface{} (#883)

Co-authored-by: tzz <tzz.wannamoney@qq.com>
pull/885/head
Tzz 4 years ago committed by GitHub
parent 6919f158cd
commit 18ea3a6a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      config/reader.go

@ -74,7 +74,7 @@ func (r *reader) Value(path string) (Value, bool) {
}
func (r *reader) Source() ([]byte, error) {
return marshalJSON(r.values)
return marshalJSON(convertMap(r.values))
}
func cloneMap(src map[string]interface{}) (map[string]interface{}, error) {

Loading…
Cancel
Save