Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate key on output #87

Open
reutsharabani opened this issue Jan 22, 2025 · 0 comments
Open

Duplicate key on output #87

reutsharabani opened this issue Jan 22, 2025 · 0 comments

Comments

@reutsharabani
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant