How can I specify entries for array elements individually

something like this - https://www.mockaroo.com/507e59f0

so I can specify the individual objects within the array, as some objects will be different e.g.

subject
predicate
object

subject
predicate
object - datatype
object - value

I hoped I could (as in my schema linked above) specify the array index, but this doesn’t seem to work.

Anyone have any ideas?

Perhaps something like this: https://www.mockaroo.com/57964730

It always generates both a simple value and an object, then randomly switches between them for the actual value. Naming a field starting with “__” hides it from the output.

Oops. That link is broken…

Sorry about that, here you go: https://www.mockaroo.com/57964730

1 Like