using System.Data.SqlClient;
using Newtonsoft.Json.Linq;
using System.Collections.Generic;
public static void Main()
JObject obj = new JObject();
if(obj["id"] != null && obj["id"].Type != JTokenType.Null)
string val = (string)obj["id"];
Console.WriteLine(val.Replace("\r", @"\r"));