Sometimes you need to export SQL Server to JSON, you can use Withdata DBToFile as to SQL Server to JSON Exporter (Unloader / Extractor / Dumper).
Works GREAT in 2025.
Support Windows, Linux, and macOS.
Can run in CLI (Command Line Interface), for Scheduled Tasks and Streams, for Automation.
After exporting SQL Server to JSON in GUI, and Saving "SQL Server to JSON" session, then you can:
After exporting SQL Server to JSON in Command Line, then you can schedule and automate "SQL Server to JSON" conversion task by: