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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Satya KarkiRank #78 · 24.6K reputationPosted Mar 12, 2021, 12:56 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Mar 12, 2021, 5:58 AM EST
Amira BedhiafiRank #601 · 4K reputationPosted Mar 12, 2021, 12:00 PM EST
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.
Rijwan AnsariRank #82 · 24.2K reputationPosted Mar 12, 2021, 12:54 PM EST
Ajay KumarRank #56 · 29K reputationPosted Mar 12, 2021, 11:47 PM EST