Board Thread:Support Requests - Getting Technical/@comment-3147293-20150516125422

Actually I am writing a Javascript code to insert a statistical chart into the landing page. My intention is to show how much pages exist for each of major categories of the site, using an enhanced visual plugin.

I figured out that MediaWiki API can provide JSON-encoded information on categories: 

from http://ko.pokemon.wikia.com/api.php?action=query&format=json&prop=categoryinfo&titles=Category:NPC

part is definitely what I am looking for. So I tried to extract it like below:

As you can see, I am not familiar yet with handling object. Isn't there a smarter way of selecting this value? I appreciate your help. 