If you are only querying a single channel you want to use https://api.twitch.tv/kraken/streams/CHANNELNAME?client_id=code instead and your code would work.
/streams by itself will return an array of stream objects so you would need to access them index (channel["streams"][0..n]["viewers"]) or iterate over the streams array in the result.