Page 5 of 5

Re: Is there a simple and reliable way to process JSON data?

Posted: 06 May 2020, 11:47
by teadrinker
thomastthai wrote:

Code: Select all

obj.key3[4] := {'key34': 'value34'}
AutoHotkey objects don't support single quotes, use double quotes. If a key doesn't contain spaces, quotes do not required. So, it could be: obj.key3[4] := {key34: "value34"}

Re: Is there a simple and reliable way to process JSON data?

Posted: 06 May 2020, 11:47
by Chunjee
thomastthai wrote:
06 May 2020, 11:34

Code: Select all

obj.key3[4] := {'key34': 'value34'}
' and " are not interchangable like js. Must be:

Code: Select all

obj.key3[4] := {"key34": "value34"}
or

Code: Select all

obj.key3[4] := {key34: "value34"}

Re: Is there a simple and reliable way to process JSON data?

Posted: 06 May 2020, 13:05
by thomastthai
Thank you @teadrinker and @Chunjee! I learn something new everyday.