Skip to content

cjson.encode() modified order #66

@yhc19850706

Description

@yhc19850706

when i use cjson.encode(table), the table is modified order ,why?
e.g:
local json = cjson.encode({name="yhc",age=40,birthday="1985"})

print(json) -- {"birthday":"1985","name":"yhc","age":40}

i don't want to change,how to do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions