A class for making json requests