File names with spaces are where my shell scripts usually fall over, and JSON from an API is full of values I did not choose. Pasting them into a command unquoted is asking for trouble. jq has a formatter that does the quoting for you.
jq -r '.files[] | @sh' data.json
With {"files":["a b.txt","it's.txt"]} the output is two lines:
'a b.txt'
'it'\''s.txt'
Every value is wrapped in single quotes, and a single quote inside the value is escaped the way a shell expects. Give @sh an array and you get all values on one line, separated by spaces:
eval "set -- $(jq -r '.files | @sh' data.json)"
printf '[%s]\n' "$@"
That loads the values into $1, $2 and so on, and the printf shows two items, a b.txt and it's.txt, each intact.
The caveat is the eval. It is only safe because @sh did the quoting, so never build that string by hand. Also remember -r: without it jq wraps the whole result in another pair of double quotes and the shell sees them as part of the text.
Further reading: jq manual