Skip to content

Conversation

@mikefero
Copy link

To improve the gopher-json encoding aspects lua.UserData types detected are replaced as JSON null values and the encoding of sparse arrays is now possible where the key/index and value from the array item are combined to form the JSON value:

{
  1,
  2,
  [10] = 3
}

=>

[
  1,
  2,
  "[10] = 3"
]

hbagdi and others added 3 commits December 16, 2022 09:30
This fix allows for sparse array and converts the key (which is the
index in this case) into part of the JSON encoded output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants