Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object is treated as array after casting a table from object to array #60

Open
drinkwithwater opened this issue Apr 17, 2024 · 0 comments

Comments

@drinkwithwater
Copy link

local rapidjson = require "rapidjson"

local t = rapidjson.object({})
rapidjson.array(t)

local str = rapidjson.encode(rapidjson.object({a=1,b=2}))

print(str) -- expected : {"b":2,"a":1}, but get output : [], 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant