Substitution files can be used to update the content of json files.
Whilst the substitution file itself is an XML file, you can provide jsonPath values to update values within a json configuration (for example a appsettings.json file/)
jsonPath
appsettings.json