Is there a simple and reliable way to process JSON data? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
teadrinker
Posts: 4326
Joined: 29 Mar 2015, 09:41
Contact:

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

06 May 2020, 11:47

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"}
Last edited by teadrinker on 06 May 2020, 11:49, edited 2 times in total.
User avatar
Chunjee
Posts: 1419
Joined: 18 Apr 2014, 19:05
Contact:

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

06 May 2020, 11:47

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"}
thomastthai
Posts: 18
Joined: 12 Mar 2020, 01:51

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

06 May 2020, 13:05

Thank you @teadrinker and @Chunjee! I learn something new everyday.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: ConnorMcLoud and 167 guests