Spawn strings instead of objects on JsonServer.io

I'm using the JsonServer.io to mok my backend API, but I struggle with the spawn of string values. Is there a possibility to do this? I managed it to spawn one or more objects, but in my usecase I have to spawn string values instead.

I would expect to get a result like this:

"categories": [
    "category-one",
    "category-two",
    "category-three",
    ...
]


Read more here: https://stackoverflow.com/questions/64952931/spawn-strings-instead-of-objects-on-jsonserver-io

Content Attribution

This content was originally published by BloodhunterD at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: