code: function _normalize (json, limit) {
    var result = { total: parseInt(json['total_found'], 10), torrents: [] }
  
    // skip total_found key, or limit further
    var count = Math.min(Object.keys(json).length - 1, limit || 200)
  
    // convert object to array
    for (var i = 0; i < count; i++) {
      result.torrents[i] = {}
      Object.keys(json[i + 1]).forEach(function (key) {
        // rename some keys
        result.torrents[i][key.replace('torrent_', '')] = json[i + 1][key]
      })
      result.torrents[i].category = result.torrents[i].category.toLowerCase()
    }
  
    return result
  }
docs: note: the json data is assumed to have a specific format.