Skip to content

Support for string separated maps (like arrays) #16

@arves100

Description

@arves100

During decoding of another mystical brave fronter JSON, a similar pattern like this was found:

"75YV2q1i": "800010:1,800011:1",

This makes me think that we are dealing with a map, something in C++ would translate to:

std::unordered_map<int32_t, int32_t>

such map would then be separated into a string with uses ":" as the key/value separator and "," as the element separator.

Such syntax would need to be implemented into the generator (and a new glaze c++ mapper needs to be coded).

What would be appropriate for a syntax?

[i32 => i32]::sep(colon, comma)
[i32 => i32]::sep(comma)::keysep(colon)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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