Hi,
I am using below to get gender list from DynamoDB:
- $result = $client->scan(array(
- 'TableName' => 'gender',
- ));
- foreach ($result['Items'] as $item) {
- echo json_encode($item);
- }
and getting this output:
- {"gender_name":{"S":"Female"},"gender_id":{"S":"F"}}{"gender_name":{"S":"Male"},"gender_id":{"S":"M"}}
if data is my returned in ajax success, how can I get the gender_id and gender_name?
Thanks,