I need to parse JSON. Unfortunately, I couldn't get name and rate from the JSON string as usual method described in here. Also, this one doesn't help me.
{"usd":
{"code":"USD",
"alphaCode":"USD",
"numericCode":"840",
"name":"U.S. Dollar",
"rate":1.0857128644692,
"date":"Mon, 21 Dec 2015 12:00:01 GMT"},
"gbp":
{"code":"GBP",
"alphaCode":"GBP",
"numericCode":"826",
"name":"U.K. Pound Sterling",
"rate":0.72830809326194,
"date":"Mon, 21 Dec 2015 12:00:01 GMT"},
"cad":
{"code":"CAD",
"alphaCode":"CAD",
"numericCode":"124",
"name":"Canadian Dollar",
"rate":1.5123600265482,
"date":"Mon, 21 Dec 2015 12:00:01 GMT"}
}
Result:
"U.S. Dollar" "1.0857128644692"
"Canadian Dollar" "1.5123600265482"