use correct json parse function for api response handling @coryvirok