AutoHotkey-JSON
AutoHotkey-JSON copied to clipboard
AHK v2 a108 code
I played around with the code in Jxon.ahk and got a working version for AHK v1 and v2 (a108). Some lines have to be toggled as commented / uncommented to get both AHK v1 and v2 functionality. Straight {}
objects have been dropped in the AHK v2 bit. Only Arrays()
and Maps()
are included.
AHK v1 issues:
- blank arrays/maps are always detected as maps since there's no way to determine array type
- maps with sequential numerical indexes are detected as linear arrays
- numbers quoted or not come out unquoted
- numbers starting with 0 come out quoted
- Jxon_Load() accepts unquoted numbers now
AHK v2 progress:
- quoted strings are properly detected regardless of contents
- arrays/maps are properly detected regardless of contents
- Jxon_Load() accepts unquoted numbers now