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

Get help with using AutoHotkey and its commands and hotkeys
teadrinker
Posts: 1805
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: 671
Joined: 18 Apr 2014, 19:05
GitHub: Chunjee

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: 16
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”

Who is online

Users browsing this forum: Bing [Bot], electrone77, mikeyww, RubbeH and 45 guests