Hi ramco1917,
Please refer below sample.
HTML
<asp:Label ID="lblBody" runat="server"></asp:Label>
Code
protected void Page_Load(object sender, EventArgs e)
{
string orig = "160060";
string dest = "160062";
string pay_time = "prepaid";
string order_amount = "1000";
var body = "{" + Environment.NewLine +
string.Format(" \"origin\" : \"{0}\",{1}", orig, Environment.NewLine) +
string.Format(" \"destination\" : \"{0}\",{1}", dest, Environment.NewLine) +
string.Format(" \"payment_type\" : \"{0}\",{1}", pay_time, Environment.NewLine) +
string.Format(" \"order_amount\" : \"{0}\"{1}", order_amount, Environment.NewLine) +
"}";
lblBody.Text = body;
}
Output
{
"origin" : "160060",
"destination" : "160062",
"payment_type" : "prepaid",
"order_amount" : "1000"
}