We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c447ded commit 4a0c9a2Copy full SHA for 4a0c9a2
writer/json.go
@@ -36,8 +36,8 @@ func treeValue(t tree.Tree) interface{} {
36
opts := jsondiff.DefaultJSONOptions()
37
opts.SkipMatches = true
38
39
- before := t.Value.Change.Before.([]byte)
40
- after := t.Value.Change.After.([]byte)
+ before, _ := json.Marshal(t.Value.Change.Before)
+ after, _ := json.Marshal(t.Value.Change.After)
41
_, str := jsondiff.Compare(before, after, &opts)
42
diff = make(map[string]interface{})
43
_ = json.Unmarshal([]byte(str), &diff)
0 commit comments