using Newtonsoft.Json.Linq;
public static void Main()
""_postman_id"": ""10594116-1473-46db-b730-b84244afebb6"",
""schema"": ""https://schema.getpostman.com/json/collection/v2.1.0/collection.json"",
""_exporter_id"": ""23936755""
""name"": ""019048MAM000"",
""value"": ""eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJrYWFiaUBuZy1zaWduLmNvbSIsImlhdCI6MTY3NzQ4OTQ3Mn0.sfuXtnegdizRDCCGCp9Nj2gGrTeF4LY35GVt9to9PY7RMpNdMvGGc77elG52qNphHTQ0teFcoZN4yPSHXQ56Wg"",
""key"": ""content-type"",
""value"": ""application/json""
""raw"": ""{\r\n \""invoiceTIEF\"": {\r\n \""supplierIdentifier\"": \""002264HAM001\"",\r\n \""supplierDetails\"": {\r\n \""partnerIdentifier\"": \""002264HAM001\"",\r\n \""partnerName\"": \""SNDP\"",\r\n \""address\"": {\r\n \""description\"": \""Addresse SNDP\"",\r\n \""street\"": \""Rue\"",\r\n \""cityName\"": \""Rue\"",\r\n }}}}"",
""raw"": ""https://test.com/server/protected/invoice/"",
""description"": ""SNDP Gateway WS""
dynamic jsonObj = Newtonsoft.Json.JsonConvert.DeserializeObject(json);
JObject rawJObj = JObject.Parse(jsonObj["item"][0]["request"]["body"]["raw"].ToString());
rawJObj["supplierIdentifier"] = "019048MAM000";
jsonObj["item"][0]["request"]["body"]["raw"] = Newtonsoft.Json.JsonConvert.SerializeObject(rawJObj);
string output = Newtonsoft.Json.JsonConvert.SerializeObject(jsonObj, Newtonsoft.Json.Formatting.Indented);
Console.WriteLine(output);