json-iterator / go

A high-performance 100% compatible drop-in replacement of "encoding/json"
http://jsoniter.com/migrate-from-go-std.html
MIT License
13.33k stars 1.02k forks source link

Use ReadStringAsSlice instead of ReadString #697

Open jaggman opened 5 months ago

jaggman commented 5 months ago

Returning string([]byte) escapes to heap Cast to string by receiver, if needed