Add tests for other types of JSON objects
This commit is contained in:
@@ -1008,7 +1008,11 @@ func decodeJson(vr *ValueReader, d interface{}) error {
|
||||
}
|
||||
|
||||
bytes := vr.ReadBytes(vr.Len())
|
||||
return json.Unmarshal(bytes, d)
|
||||
err := json.Unmarshal(bytes, d)
|
||||
if err != nil {
|
||||
vr.Fatal(err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func encodeJson(w *WriteBuf, value interface{}) error {
|
||||
|
||||
Reference in New Issue
Block a user