在json文件中查找和编辑几行

时间:2019-03-26 15:47:53

标签: json batch-file command-line

我们在应用程序端有一个json文件(PFB),我们想在该json文件中更改几行。该文件存在于每个用户的计算机上,并且位于其个人资料中。

"restartReason":  null,
"currentWebLanguage":  "en-US",
"appPreferenceSettings":  {
                              "openAtLogin":  true,
                              "openAsHidden":  "False",
                              "runningOnClose":  true,
                              "registerAsIMProvider":  "False"
                          },
"isLoggedOut":  false,
"pastModernAuthSucceeded":  true,
"previousWebClientVersion":  "27/1.0.0.2019031417",
"isForeground":  false,
"notificationWindowOnClose":  true,
"isAppSessionEnd":  true,
"isAppTerminated":  false,
"rendererCrashInfo":  null

在“ appPreferenceSettings”中,我们需要更改为以下

“ appPreferenceSettings”:{                               “ openAtLogin”:是的,                               “ openAsHidden”:“ True”,                               “ runningOnClose”:是的,                               “ registerAsIMProvider”:“真”                           }

0 个答案:

没有答案