Is JSON.stringify() necessary for payloads via Shared Array?

Hi @mercfh ,

Just to circle back here, using a SharedArray is a good option if the JSON file to read is big / lots of VUs. In that case, create an array with 1 position and just read the first one as you initially proposed. Otherwise, for smaller files, you can use k6 open directly, with examples also in the docs (apart from the example above): JavaScript API: open

For now a SharedArray cannot be used in the setup. Once this is available, SharedArray improvements · Issue #2043 · grafana/k6 · GitHub, it’s a good option to use, an JSON array with a single item.

Cheers!