zrkn / rlua_serde

Serde (De)serializer implementation for rlua::Value
MIT License
24 stars 16 forks source link

Explicit array support #11

Open ColonelPhantom opened 4 years ago

ColonelPhantom commented 4 years ago

This PR adds a feature that implements a way to mark a table as an array explicitly using the (unofficial) __array field in its metatable.

This means that serializers that use deserialize_any can also get arrays when the feature is enabled and the metatable field is set.