Skip to content

Allow deserializing strings as sequences to not allocate on strings with escape sequences #321

Open
@oli-obk

Description

@oli-obk

"\"foo\"" needs to be deserialized into a heap allocated string first and then parsed further.

#318 gives one alternative to the allocation by rewriting the original input.

If the input cannot be modified, another alternative would be to allow deserialize_seq to produce a sequence of characters or bytes instead of going straight for the string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions