Hi, I'm trying to get an array as JSON in JavaScript, but it seems like the Array API doesn't provide the method, so how to achieve this?
const myArray = runtime.objects.myArray.getFirstInstance(); const myArrayJSON = myArray.getAsJSON(); // My dream but not reality?!
Develop games in your browser. Powerful, performant & highly capable.
Quick workaround with events:
Set variable to Array.AsJSON
Then just use that variable in script.