I’m trying to move from a manually created system over to strapi and so far i’m loving it. One thing I can’t seem to figure out though are lists/arrays of strings/numbers. I was able to create a component that had a single string in it, and then I used that component in a collection (as repeatable). That allowed me to add a list/array of those strings to a collection. The api response with that setup is quite a bit more verbose than it needs to be. For example, let’s say I want to create a playlist of vimeo IDs that is stored in an object as strings. In my current hand-coded json, it looks like this:
"playOrder":[
"12342345",
"12342346",
"12342347",
"12342348",
"12342349"
],
When I use strapi and a component in a collection, I get this:
"playOrder":[
{"id":1,"playOrderItem":"12341234"},
{"id":2,"playOrderItem":"12341235"},
{"id":6,"playOrderItem":"12341236"},
{"id":10,"playOrderItem":"12341237"},
{"id":11,"playOrderItem":"12341238"},
{"id":13,"playOrderItem":"12341239"}
],
Is there any way to create a simple list of strings/numbers like that first example (without using the JSON collection type, I want the people who need to enter this data to not have to know JSON formatting)? I could re-adjust all of my code to parse that new format, but I prefer the cleaner/less data intensive way that it looks currently.
EDIT: This is in V4