mirror of
https://github.com/json-iterator/go.git
synced 2025-01-23 18:54:21 +02:00
Marshal comment
This commit is contained in:
parent
c69b61f879
commit
ff027701f5
@ -84,7 +84,6 @@ func UnmarshalAnyFromString(str string) (Any, error) {
|
|||||||
// jsoniterator.Marshal is an adapter to json.Marshal
|
// jsoniterator.Marshal is an adapter to json.Marshal
|
||||||
//
|
//
|
||||||
// Marshal returns the JSON encoding of v, adapts to json/encoding Marshal API
|
// Marshal returns the JSON encoding of v, adapts to json/encoding Marshal API
|
||||||
|
|
||||||
func Marshal(v interface{}) ([]byte, error) {
|
func Marshal(v interface{}) ([]byte, error) {
|
||||||
buf := &bytes.Buffer{}
|
buf := &bytes.Buffer{}
|
||||||
stream := NewStream(buf, 512)
|
stream := NewStream(buf, 512)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user