Troubleshooting "JSONObject text must begin with '{' at character 1" errorIssue Have you received the "A JSONObject text must begin with '{' at character 1 of ..." error message? See below for potential causes and resolution steps. CauseThis error message may be seen due to keystore corruption in MID server.ResolutionMake sure the mid server windows service "Log on as" account is either a local admin account, or has full permission to mid server folder.On MID server host, stop MID server windows service.For pre-Rome release, delete the keystore file in agent/keystore folder. For Rome and onward releases, delete the keystore file in agent/security folder.Open config.xml and remove the keystore value. i.e: <parameter name="keypairs.mid_id" value=""/> In config.xml, locate parameter mid.instance.password, empty the value, then enter mid server user's password in clear text (it will be re-encrypted automatically when MID server service starts).Start MID server windows service.The mid server will start up as not validated. Click the validate link and the MID server should restart and then validated.Related LinksThis error is also observed when clients switch between JRE versions (e.g: from Java 8 to Java 11). Since this changes the Java implementation the Java keystore is also changed. If this is not flushed from config.xml then the new Java cannot decrypt the keystore and throws errors similar to keystore corruption.