Hi @darktux
The first thing I noticed was the "out of spec comment" in this JSON object.
JSON OBJECT
{
"BrowserSignin": 0,
"SyncDisabled": true,
"SpellcheckEnabled": false,
"SafeBrowsingEnabled": false,
"TranslateEnabled": false,
"AutofillAddressEnabled": false,
"AutofillCreditCardEnabled": false,
"AutofillProfileEnabled": false,
"AlternateErrorPagesEnabled": false,
"SearchSuggestEnabled": false,
"BlockThirdPartyCookies": true,
"DefaultThirdPartyStoragePartitioningSetting": 2,
"CloudPrintProxyEnabled": false,
"ScreenCaptureAllowed": false,
"LiveTranslateEnabled": false,
"RemoteAccessHostAllowRemoteAccessConnections": false,
"RemoteAccessHostAllowRemoteSupportConnections": false,
"DisableScreenshots": true,
"FeedbackSurveysEnabled": false,
"DomainReliabilityEnabled": false,
"DomainReliabilityAllowed": false,
"PrivacySandboxEnabled": false,
"BackgroundModeEnabled": false,
"NetworkTimeQueriesEnabled": false,
"DefaultAppsEnabled": false,
"UrlKeyedAnonymizedDataCollectionEnabled": false,
"NetworkPredictionOptions": 2,
"MetricsReportingEnabled": false,
//"DefaultCookiesSetting": 4,
"PaymentMethodQueryEnabled": false,
"EnableMediaRouter": false
}
Invalid JSON by definition:
//"DefaultCookiesSetting": 4,
is invalid in strict JSON. Comments are not allowed in JSON (per RFC 8259).
That line will cause a parse error in any parser that strictly adheres to the JSON spec. If you're using a tool or environment (like some Chrome policy files or JavaScript-based loaders) that tolerates or preprocesses comments, it might still work — but it's not valid JSON by definition
If you with to comment out lines in a config file, consider using YAML as the YAML spec permit comments.