我正在尝试反序列化此对象:
<script src="https://unpkg.com/vue@2.5.17/dist/vue.min.js"></script>
<div id="app">
<button @click="pushData()">Add Tab</button>
<button @click="popData()">Pop one</button>
<tabs-component>
<tab-component v-for="(type, index) in beerTypes" :key="type.slug" :title="type.slug">
<h1>{{ index }}: {{type.slug}}</h1>
<p>Lorem ipsum dolor sit amet.</p>
</tab-component>
</tabs-component>
</div>
与此:
{u'Keys': {u'pk': {u'S': u'Container-Image-c234a762-6848-4746-bd39-ab1ec4107e44'}, u'id': {u'S': u'Tag-0e3eccac-f3bc-423e-992f-b594a3996678'}}, u'ApproximateCreationDateTime': 1537410660.0, u'StreamViewType': u'NEW_IMAGE', u'SequenceNumber': u'72250100000000054705231351', u'SizeBytes': 96}
我收到此错误:
ddb_deserializer = StreamTypeDeserializer()
deserialized_doc_fields = ddb_deserializer.deserialize({'M': ddb})
我认为很明显是因为u'pk'类型。从发电机回来的。但是我该如何处理呢?