Changed i/o jsons for api functions