Skip to content

char is not serializable #16

@ahmetsait

Description

@ahmetsait
iopipe.json.serialize.deserialize!char(`""`); // Error: template instance `iopipe.json.serialize.deserialize!(char, JSONTokenizer!(string, ParseConfig(false, false, false, false)))` error instantiating
iopipe.json.serialize.serialize('A'); // Error: template instance `iopipe.json.serialize.serialize!(Flag.no, BufferedInputSource!(AllocatedBuffer!(char, GCNoPointerAllocator, 32LU), immutable(NullDev), 32LU), char)` error instantiating

I don't know if this is on purpose, but allowing single character strings to be deserialized into chars would be nice regardless.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions