Repository navigation
v1.3.4
Release jsonvalue v1.3.4. Comparing to v1.3.3:
- Type
*jsonvalue.Vnow implements following interfaces thus it can used directly inencoding/json:json.Marshaler、json.Unmarshalerencoding.BinaryMarshaler、encoding.BinaryUnmarshaler
- Supports importing data types those implement
json.Marshalerorencoding.TextMarshalerinterfaces, just likeencoding/jsondoes. - Add
MustAdd,MustAppend,MustInsert,MustSet,MustDeletemethods. These methods will not return sub-values or errors.- This will prevent golangci-lint warning of "return value is not used"
- Bug fix: When invoking
Append(xxx).InTheBeginning(), the sub-value was actually and faulty append to the end. - Pre-allocate some buffer and space when marshaling and unmarshaling. It will speed-up a little bit and save 40% alloc count by average.