Threadborn
Threadborn
CC#
Created by Zoli on 4/10/2025 in #help
Most efficient way to modify json in C#
If i was in your place i would try for the lulz to convert the string to a ReadOnlySpan<string> and parse the key you are interested only (to avoid parsing the whole document). This being said i know this solution is hacky but it might be faster than converting the whole json to a JObject. But also i agree that having such logic in a setter is not a great idea.
44 replies