Skip to content

Support for Maps and Sets (to/from Variant) #31

@jimkring

Description

@jimkring

Currently, Maps and Sets are only supported by the Get Data Name and Set Data Name functions.

It would be nice if one could get the key/value elements of Maps and Sets as variants.

For example, if one has a Map inside a Variant, to be able to obtain the Keys as an array inside a Variant (VArray) and Values as an array inside a Variant (VArray), as well as to be able to get the type of keys and type of the values

Likewise, if one has a Set, it would be nice to be able to get the Set as a VArray and to be able to get the element type and default value (similar to the API for VArrays).

The most common use case would be to convert Maps/Sets to/from JSON or other serialized format. As such, complete Map/Set APIs are not critical -- just a way to convert the VMap and VSet into variants with their keys/values (and back).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions