Next we need to create a stored procedure that will accept JSON text as a parameter and insert it into the table. Two important points here:
JSON text must use the NVARCHAR(MAX) data type in SQL Server in order to support the JSON functions.
The OPENJSON function is used to convert the JSON text into a rowset, which is then inserted into the previously created table.
The whole process is quite easy; check it out.