Tsql to query json in a string field

I have json stored in a string field. There is a board_code node in the json. The sql to select just the board_code value out of those strings is:

SELECT JSON_VALUE(ColumnName, ‘$.board_code’) AS BoardCode FROM TableName;

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.