Skip to content

Commit

Permalink
RawMessage does not give consistent JSON ordering upon marshal
Browse files Browse the repository at this point in the history
  • Loading branch information
bdwyertech committed Feb 23, 2022
1 parent 986d256 commit aaaac9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/dynamodb_encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaaac9f

Please sign in to comment.