Convert response to objects and index by given key.
Coding standards: Renamed methods, meaningful variable names, separating parameters.