Commit Graph
1 Commits
Author SHA1 Message Date
Kipstz 14c69893e8 Fix JsonEncode treating tables with index 0 as arrays
Tables with index 0 should be encoded as JSON objects, not arrays.
Lua arrays start at index 1, so any table with keys outside 1-N range
should be treated as an object.

Added IsLuaArray() helper that checks all keys are integers >= 1.

Closes #348
2025-12-24 16:35:54 +01:00