Spawn strings instead of objects on JsonServer.io Spawn strings instead of objects on JsonServer.io json json

Spawn strings instead of objects on JsonServer.io


For spawning a property as array by its value, your have to do a similar expression like to spawn objects, just use it behind the value you need instead of using it at property name.

"categories": "expression|spawn(5)"

This will generate the expected array.


You can also visit the official documentation for more detailed information.