G33kDude / Chrome.ahk

Automate Google Chrome using native AutoHotkey
https://autohotkey.com/boards/viewtopic.php?t=42890
MIT License
336 stars 82 forks source link

'Failed to parse JSON' when running script #39

Open peckmc opened 1 year ago

peckmc commented 1 year ago

I'm trying to upgrade from v1.2 to v1.3. When I include Chrome.ahk in a script I get this error:

Failed to parse JSON (-1,0)
Specifically: Unexpected character at position 0: "

v1.2 was working as expected 🤷 Any help is much appreciated!

G33kDude commented 1 year ago

Does it give any indication of what code path triggered this error?

Are you using AutoHotkey Unicode?

peckmc commented 1 year ago

Thanks for your reply! The problem went away when I upgraded to AHK v2. I was definitely using the ANSI version before. Is it known to cause issues?

G33kDude commented 1 year ago

Yes, the new high performance JSON library is not compatible with ANSI AHK.