From aaaac9ffc8720bc5c6ae1d937a41236134937059 Mon Sep 17 00:00:00 2001 From: Brian Dwyer Date: Wed, 23 Feb 2022 15:26:31 -0500 Subject: [PATCH] RawMessage does not give consistent JSON ordering upon marshal --- internal/provider/dynamodb_encoding.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/dynamodb_encoding.go b/internal/provider/dynamodb_encoding.go index 77ab88d9..93cb3ef3 100644 --- a/internal/provider/dynamodb_encoding.go +++ b/internal/provider/dynamodb_encoding.go @@ -23,7 +23,7 @@ func SerializeAttributeMap(v map[string]types.AttributeValue) (jsonBytes []byte, } object.Close() - var j json.RawMessage + var j interface{} err = json.Unmarshal(value.Bytes(), &j) if err != nil { return