1
0
mirror of https://github.com/json-iterator/go.git synced 2024-11-27 08:30:57 +02:00

marshal lazy array/object using the config

This commit is contained in:
Tao Wen 2017-06-17 21:13:17 +08:00
parent 0195110b5b
commit 2503ef17eb
2 changed files with 2 additions and 2 deletions

View File

@ -194,7 +194,7 @@ func (any *arrayLazyAny) ToString() string {
return *(*string)(unsafe.Pointer(&any.buf))
} else {
any.fillCache()
str, err := MarshalToString(any.cache)
str, err := any.cfg.MarshalToString(any.cache)
any.err = err
return str
}

View File

@ -196,7 +196,7 @@ func (any *objectLazyAny) ToString() string {
return *(*string)(unsafe.Pointer(&any.buf))
} else {
any.fillCache()
str, err := MarshalToString(any.cache)
str, err := any.cfg.MarshalToString(any.cache)
any.err = err
return str
}