4.Request-for-help posts should be made with effort
Make sure any code is properly formatted, explain what you have tried, and where applicable try to create a Minimal, Complete, and Verifiable Example. Be clear and courteous. If a question that could have been easily Googled is asked without indicating what and why those typical results didn’t work, it will be removed. Help posts that have had little effort put into them will be removed at the discretion of the moderators.


This seems like an odd way of going about things? Can we get broader context of the function? What db are you using?
What version of .Net are you using? Can you just use a JSON library to build and modify JSON objects? Are you manipulating raw JSON? What is coming from the db? Raw data?
C# devs
null reference exceptions

source