0

I am stuck i.e.

I wish to remove "expdtl" from json file using JSON.NET using C#

I am new to this!

Here is the Json File

json.txt

...

{
   "einvoices":[
 
     {
         "self_gstin":"29AACPC6144K000",
         "irnreq":"Y",
     }   
                  
      

    **"expdtl": {
                     "expcat": "null",
                     "wthpay": "null",
             },**

}]
...
Panagiotis Kanavos
  • 120,703
  • 13
  • 188
  • 236
  • 1
    JSON is a text file, not a database. You can't modify or delete a part of it. You have to load the text, modify it and then write it back to the file. If you use a parser like JSON.NET or System.Text.Json you can load the file into a JSON object, modify that object and then save it back to the file – Panagiotis Kanavos Oct 14 '22 at 09:54

0 Answers0