Nongzhsh / Awesome.Net.WritableOptions

Awesome.Net.WritableOptions can update values into appsetting.json
MIT License
12 stars 4 forks source link

JsonFileHelper.TryGet() Return System.Text.Json.JsonReaderException #9

Open hamid65217 opened 1 year ago

hamid65217 commented 1 year ago

When I Called TryGet() Method in Program.cs , This Exception is thrown: System.Text.Json.JsonReaderException: ''0xEF' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.' on this line of method: using(var jsonDocument = JsonDocument.Parse(jsonContent));