Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
[Fork] https://stackoverflow.com/questions/59839437/efficiently-replacing-properties-of-a-large-json-using-system-text-json by dbc_MinLength
Environment version: .NET 9.0.0 (9.0.0)


Null patch of Question59839437_0.json to Question59839437_0_Patched.json produced equivalent JSON files.
Patching of fileContent in Question59839437_0.json to fileRoute in Question59839437_0_Patched.json with binary files [Question59839437_fileContent_1.bin] resulted in identical binary data.
Input file Question59839437_0.json:
   {"files":[{"name":"One Name","fileContent":""}]}
Patched file Question59839437_0_Patched.json:
   {"files":[{"name":"One Name","fileRoute":"Question59839437_fileContent_1.bin"}]}

Null patch of Question59839437_1.json to Question59839437_1_Patched.json produced equivalent JSON files.
Patching of fileContent in Question59839437_1.json to fileRoute in Question59839437_1_Patched.json with binary files [Question59839437_fileContent_1.bin] resulted in identical binary data.
Input file Question59839437_1.json:
   {"files":[{"name":"One Name","fileContent":"AA=="}]}
Patched file Question59839437_1_Patched.json:
   {"files":[{"name":"One Name","fileRoute":"Question59839437_fileContent_1.bin"}]}

Null patch of Question59839437_100.json to Question59839437_100_Patched.json produced equivalent JSON files.
Patching of fileContent in Question59839437_100.json to fileRoute in Question59839437_100_Patched.json with binary files [Question59839437_fileContent_1.bin] resulted in identical binary data.
Input file Question59839437_100.json:
   {"files":[{"name":"One Name","fileContent":"AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiYw=="}]}
Patched file Question59839437_100_Patched.json:
   {"files":[{"name":"One Name","fileRoute":"Question59839437_fileContent_1.bin"}]}

Null patch of Question59839437_1000.json to Question59839437_1000_Patched.json produced equivalent JSON files.
Patching of fileContent in Question59839437_1000.json to fileRoute in Question59839437_1000_Patched.json with binary files [Question59839437_fileContent_1.bin] resulted in identical binary data.

Null patch of Question59839437_100000.json to Question59839437_100000_Patched.json produced equivalent JSON files.
Patching of fileContent in Question59839437_100000.json to fileRoute in Question59839437_100000_Patched.json with binary files [Question59839437_fileContent_1.bin] resulted in identical binary data.

Null patch of Question59839437_400000.json to Question59839437_400000_Patched.json produced equivalent JSON files.
Patching of fileContent in Question59839437_400000.json to fileRoute in Question59839437_400000_Patched.json with binary files [Question59839437_fileContent_1.bin] resulted in identical binary data.
All tests passed.
Cached Result
Last Run: 5:29:44 pm
Compile: 0.029s
Execute: 0.23s
Memory: 31.16Mb
CPU: 0.259s