I have tried that and I get the following response:
{"metadata":"[{\\"idx\\":0,\\"bandBuffers\\":[{},{},{},{},{}]}]"}
However, previously I used to get the date here when using the same script for Sentinel 2. Here is the evalscript for that:
eval_script_rgb_json = """
//VERSION=3
let minVal = 0.0;
let maxVal = 0.4;
let viz = new HighlightCompressVisualizer(minVal, maxVal);
function evaluatePixel(samples) {
let sudoPanW = (samples.B04 + samples.B03 + samples.B02 * 0.4) / 2.4;
let ratioW = samples.B08 / sudoPanW;
let val = [samples.B04 * ratioW, samples.B03 * ratioW, samples.B02 * ratioW];
val = viz.processList(val);
val.push(samples.dataMask);
return val;
}
function setup() {
return {
input: [{
bands: ["B02","B03","B04","B08","dataMask" ]
}],
output: {
bands: 4
}
}
}
function updateOutputMetadata(scenes, inputMetadata, outputMetadata) {
outputMetadata.userData = { "metadata": JSON.stringify(scenes) }
return [0]
}
"""