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

Fix bug with keyorder when value is false #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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
1 participant