how to convert part of json response to map

I have JSON response that looks like this

{"values":
 [
        {
            "type": "NAME",
            "match": "EXACT",
            more properties here
        },
        {
            "type": "LASTNAME",
            "match": "AMBIG",
            more properties here
        }
] }

how can I convert this to javascript map that contains only type and match properties?

For example

{
 'NAME' : 'EXACT' ,
 'LASTNAME' : 'AMBIG'
}


Download how.to.convert.part.of.json.response.to.map.zip
Direct Link


Download


Download how.to.convert.part.of.json.response.to.map.zip
Mediafire


Download


Download how.to.convert.part.of.json.response.to.map.zip
Billionuploads


Download

Both comments and pings are currently closed.

Comments are closed.