Skip to content

Commit

Permalink
Merge pull request #75 from FGYFFFF/fix/unsafe_json
Browse files Browse the repository at this point in the history
fix: unsafe gjson
  • Loading branch information
andeya committed Jan 4, 2024
2 parents 7015f02 + c0fe8f5 commit 67da08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion binding/gjson/gjson.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func Unmarshal(data []byte, v interface{}) error {
if !ok {
val = reflect.ValueOf(v)
}
return assign(gjson.Parse(ameda.UnsafeBytesToString(data)), val)
return assign(gjson.ParseBytes(data), val)
}

// assign Unmarshal
Expand Down

0 comments on commit 67da08d

Please sign in to comment.