My DBA helped me alter the above code so it would work on the non-static json files for the services:
import os, json
for root, dirs, files in os.walk(r"C:\arcgisserver\config-store\services"):
for name in files:
if name.endswith('.json') and name != 'FolderInfo.json':
filename = os.path.join(root, name)
json_data = open(os.path.join(root, name))
data = json.load(json_data)
try:
properties = data['properties']
if properties['schemaLockingEnabled'] == 'true':
print data['serviceName']
except:
pass
This helped me check that I had fixed all the 'false' to 'true'