Skip to content

Insert at a given position in Object #194

@timothee-haudebourg

Description

@timothee-haudebourg

Hi,

if I understand well, since #68 the order of an object entries is preserved during parsing. However the Object::insert function still always appends elements at the end. I believe this could be easily improved to allow insertion at any given position.

This would be particularly useful for my json-ld crate, where I sometimes need to add a special "@context" entry preferably in first position.

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