Your code doesn't make much sense to me, probably since it is missing a lot of content.
I would suggest looking into newtonsoft json.net library and utilizing json2csharp.com.
The first step would be to copy your JSON and use json2csharp.com to generate a set of classes so you can use it in serializing/deserializng your classes.
Then you just assign your values to the class accordingly. Ex:
var header = new Header();
header.ApplicationId = "82274992";
...etc
Then utilize the json.net library to serialize your class to a a json string.
From their website as an example:
Product product = new Product();
product.Name = "Apple";
product.Expiry = new DateTime(2008, 12, 28);
product.Sizes = new string[] { "Small" };
string json = JsonConvert.SerializeObject(product);
This would be an easier solution to convert something to a JSON string rather than trying to write your own JSON builder.