Skip to content

exception on writing maps where a key is a map #28

@flyingmachine

Description

@flyingmachine

This:

(charred.api/write-json-str {{:a :b} {:c :d}})

Results in this:

Execution error (CharredException) at charred.JSONWriter/writeMap (JSONWriter.java:189).
JSON encoding error - Map keys must be strings

My expectation is that {:a :b} would be stringified. It's not immediately obvious to me how to work around this

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