saving a json object to a file
April 03, 2023 09:01AM
Hi anybody know what iam doning wrong here ( windev version 28 )

IF NOT fFileExist(fExeDir() + "\inisetting2.json") THEN

inisetting is JSON = [
"user" : "Administrator",
"password" : "testpw",
"server" : localhost,
"db" : dbtest,
"multiadmin": True
fSaveBuffer(fExeDir()+ "\inisetting2.json",inisetting)


I kind of followed the help but this generates an error
Re: saving a json object to a file
April 06, 2023 10:51PM
What error?

anyway, saving in the exedir directory is generally a bad idea: if you install your software in 'program files', the directory is write protected
Re: saving a json object to a file
April 08, 2023 10:48AM

I should have put every thing in Quotes => "" Then it is valid json . I got this answer from pc soft so I guess the help does work quite good

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.