removing httpGetJsonObject, it's unneeded
adding getByIndex to pair with getByKey, and taking the key/index as the first argument
further json extraction