Hello , i want to deserialize json using sql server , I have find that Query.
SELECT * FROM OpenJson(@json)
But when i use this query in sql server then it's gives me
Invalid object name 'OpenJson'.
how can used it
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satya KarkiPosted Mar 12, 2021, 5:56 PM
Ajay KumarPosted Mar 13, 2021, 4:47 AM
Rijwan AnsariPosted Mar 12, 2021, 5:54 PM
Amira BedhiafiPosted Mar 12, 2021, 5:00 PM
OPENJSON is a table-valued function that helps to parse JSON in SQL Server and it returns the data values and types of the JSON text in a table format. Now, we will look at the syntax of this function.
The jsonExpression is an input parameter that specifies the JSON text that will be parsed by the OPENJSON function.
The jsonPath is an optional parameter and it is used to seek a specified JSON expression in the JSON text and the OPENJSON function parses only this part of the JSON text.
The WITH clause is an optional parameter that can be used to explicitly specifies the schema.
Sachin SinghPosted Mar 12, 2021, 10:58 AM