Skip to content

Duplicate key on output #87

Description

@reutsharabani

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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