refactored getJsons