mirror of
https://github.com/go-kratos/kratos.git
synced 2025-01-07 23:02:12 +02:00
Fix: marshalJson error, when values contains map[interface{}]interface{} (#883)
Co-authored-by: tzz <tzz.wannamoney@qq.com>
This commit is contained in:
parent
6919f158cd
commit
18ea3a6a47
@ -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…
Reference in New Issue
Block a user