title: How to convert between Json and Map<String, AttributeValue> in
body: <p>I want to save an object that is encoded as a Json string to DynamoDB using the AWS Java SDK 2.0.</p>
  
  <p>In the AWS Java SDK 1.n, it is possible to convert standard Json strings to DynamoDB <code>AttributeValues</code> using <code>Item.fromJSON(myJsonString).toAttributeValues()</code>.</p>
  
  <p>Though it is possible to use both SDKs at once, the <code>AttributeValue</code> defined by the two SDK versions (<a href="https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/dynamodbv2/model/AttributeValue.html" rel="noreferrer">1.11</a>, <a href="https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/dynamodb/model/AttributeValue.html" rel="noreferrer">2.0</a>) are not the same and cannot be used interchangeably.</p>
  
  <p>Is there any AWS-provided or community-standard way to go from a json string/blob to a <code>Map&lt;String, AttributeValue&gt;</code> for the AWS Java SDK 2.0?</p>
  
  <hr>
  
  <p><em>Please note—this question is asking about how to solve the problem for <strong>AWS Java SDK 2.0</strong>, not the dynamodbv2 model of AWS Java SDK 1.n. If you think this question is a duplicate, please double check the SDK version of the question/answer that it duplicates.</em></p>