Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Fix bug with keyorder when value is false#3

Open
Cr4xy wants to merge 1 commit intoLuaDist:masterfrom
Cr4xy:patch-1
Open

Fix bug with keyorder when value is false#3
Cr4xy wants to merge 1 commit intoLuaDist:masterfrom
Cr4xy:patch-1

Conversation

@Cr4xy
Copy link

@Cr4xy Cr4xy commented Apr 11, 2019

Running the following:

json.encode({A = 0, B = false, C = 0}, {keyorder = {"B", "A", "C"}})

Results:
without this patch: "{"A":0,"C":0,"B":false}"
with this patch: "{"B":false,"A":0,"C":0}"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant