Read any JSON into list of key-value pairs (EAV format) in SQL Server
问题 Looking for a way to read any JSON without knowing the internals with SQL Server's JSON methods, I came up with an approach I'd like to share. Here is the question bringing up this issue. The question is: How can I transform an unknown JSON into a structured EAV format while keeping all the information about sort order and nest levels. The ideal output should carry the original row's id as the entity , the Json's key and value as the attribute and value together with the JsonPath for the