All notable changes to this project will be documented in this file.
- float notation changed to 'f' from 'e'. '2e10-2' -> '0.02'
example:
if jin.ErrEqual(err, jin.ErrCodeKeyNotFound) {
// err is a KeyNotFound error
}
Store New! store function. store function can set or override a value like a real JSON object.
implemented for parser, interpreter and JO
json := []byte(`{"name":"eco","lastname":"hub","arr":[0,1,2,3,4,5]}`)
var err error
// adds age key to value 30
json, err = jin.StoreInt(json, "age", 30)
if err != nil {
fmt.Println(err)
return
}
// sets age value to 40
json, err = jin.StoreInt(j, "age", 40)
if err != nil {
fmt.Println(err)
return
}
- Benchmark files separated from master.