Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.

Conversation

@rzanol
Copy link

@rzanol rzanol commented Sep 21, 2023

From https://github.com/openresty/lua-cjson:

  • add cjson.encode_empty_table_as_object to encode all {} as empty arrays
  • add cjson. decode_array_with_array_mt to set cjson.array_mt as metatable on decoded arrays
  • tables with cjson.array_mt as metatable are always written as arrays

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