If your database has the compatibility level than 130 you need to change it, if not you will not be able to use OPENJSON. We need to change running the following TSQL command:
ALTER DATABASE DotNetExample SET COMPATIBILITY_LEVEL = 130
. Remember that Azure SQL Database supports right now the compatibility level of 140 ( SQL SERVER 2017 ).