I am getting a list of this type of json from a API. but I want to convert into a map with only its name
, quoteCount
, and slug
.
{
"_id": "_gz-cfmqA1mr",
"name": "Alexander Pope",
"link": "https://en.wikipedia.org/wiki/Alexander_Pope",
"bio": "Alexander Pope (21 May 1688 – 30 May 1744) is regarded as one of the greatest English poets, and the foremost poet of the early eighteenth century. He is best known for his satirical and discursive poetry, including The Rape of the Lock, The Dunciad, and An Essay on Criticism, as well as for his translation of Homer.",
"description": "English poet",
"quoteCount": 3,
"slug": "alexander-pope",
"dateAdded": "2020-12-19",
"dateModified": "2020-12-19"
}
How to convert this json into Map?