diff --git a/decoder.go b/decoder.go index 1d1baad..5e32563 100644 --- a/decoder.go +++ b/decoder.go @@ -517,7 +517,7 @@ func expandObject(node ast.Node, result reflect.Value) ast.Node { // we need to un-flatten the ast enough to decode newNode := &ast.ObjectItem{ Keys: []*ast.ObjectKey{ - &ast.ObjectKey{ + { Token: keyToken, }, },