Reduce complexity of _jsonRequestByHost method
Code factorisation
Code refactoring: improve readability