I was going through the docs about json... In a SQL select statement there are options to return the results to file "json format is one the supported types"

Do I still need the added step of filetostr("file.json") or can the result be a variable and simply sent back to the client?