if (putItemResult.getConsumedCapacity() != null) {
jsonWriter.key("ConsumedCapacity").object();
jsonWriter.key("TableName").value(putItemResult.getConsumedCapacity().getTableName());
jsonWriter.key("CapacityUnits").value(putItemResult.getConsumedCapacity().getCapacityUnits());
jsonWriter.endObject();
}
// TODO: ItemCollectionMetrics — (map)
// Information about item collections, if any, that were affected by the operation. ItemCollectionMetrics is only returned if it was asked for in the request. If the table does not have any secondary indexes, this information is not returned in the response.