Bug - Missing quotes?
Fenny opened this issue · comments
var json = []byte(`{"message":""}`)
var path = "message"
var value = []byte("Hello, World!")
var opt = &sjson.Options{
Optimistic: false,
}
raw, _ := sjson.SetRawBytesOptions(json, path, value, opt)
fmt.Println(string(json))
// => {"message":Hello, World!}
After reading the source, raw is for raw input.
I thought it was designed for value strings only.