Alter JSON array min/max

I’d like to generate a JSON array where the number of entries is dependent on other data I’m generating. So far I’ve tried

  • Entering a field name for the min/max values. (The site won’t let me do this).
  • Using a formula on the JSON array (This simply prevents the JSON array from being generated).

I’ve now hit a brick wall. Does anyone have any suggestions?

1 Like

Perhaps using a Dataset might get you closer. Can you share the link to the schema and the name of the field in question?

I am having the same problem. I tried use formula inside JSON array, but it is returning a error:

Json:

[{
“var”: 2,
“array”: “error: Access denied to method new.”,
}]

Code:

this = Array.new(var)

Error:

Access denied to method new.

Schema:

https://www.mockaroo.com/3f1b9050

Do you guys have any idea how to proceed?