Fix bug with keyorder when value is false #3

Open
Cr4xy wants to merge 1 commits from Cr4xy/patch-1 into master
Cr4xy commented 2019-04-11 06:28:42 +00:00 (Migrated from github.com)

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}"

Running the following: ```lua 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}"```
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: library-mirrors/dkjson#3
No description provided.