Implementation of api json data to java object