Skip to content

Duplicate key on output #87

Open
Open
@reutsharabani

Description

Assuming two different keys where their json output value is similar an unexpected stringified json can be emitted.

A trivial example is:

(jsonista.core/write-value-as-string {:a 1 "a" 2})
;; => "{\"a\":1,\"a\":2}"

I can theorize why this is "ok" (mostly performance) but just wanted to ask if it's an issue or acceptable (following a bug I encountered with it in my code).

Thanks.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions