question: private String makeChannelInfoJson ( ChannelInfo info ) { JSONObject root = new JSONObject ( ) ; Map channel = new HashMap ( ) ; channel . put ( "status" , info . getStatus ( ) ) ; channel . put ( "game" , info . getGame ( ) ) ; root . put ( "channel" , channel ) ; return root . toJSONString ( ) ; }
target:  Turns a ChannelInfo object to JOSN to send it to the API.