Converting Table Data to JSON for SQL Server Data Element Input

Please see, Wiki - how to post code on this forum. It's generally a good idea to post code rather than pictures of code. That way we can copy and test it or modify it in our replies. Post a cropped screengrab too if you think the context is useful.