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:
parent
0195110b5b
commit
2503ef17eb
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user