var apim = require('apim'); var json_input = apim.getvariable('request.body'); var param_query_country = apim.getvariable('request.parameters.country'); var json_output = { 'correo': json_input.email, 'pais': param_query_country }; apim.output('application/json'); session.output.write(json_output);