Separating json mapping and http requests.