Flatten nested JSON data into SQL Server tables