View contents of an uploaded file

I actually used your code and an answer by @serg.sargsyan and was able to make it work. Here’s how I did it:

function(properties, context) {
    var input;
    var url = "https:" + properties.filename;
    
    response = context.request(url);
    json = response.body;
    input = JSON.stringify(json, null, 3)
    return {contents: input};
}

You might not need to use JSON.stringify.