Skip to content

parse/unparse from/to JSON map? #20

Description

@cmal

Hi, how to translated a linked to a JSON map using some fn like cheshire.core/generate-string, or build a linked from JSON map string using some fn like cheshire.core/parse-string? or maybe implement methods toJSON/fromJSON?

for example:

(linked-to-JSON (linked/map :b 2)) ; => "{\"b\": 2}"
(linked-from-JSON "{\"b\": 2}") ; => (linked/map :b 2)

(linked-to-JSON (linked/set 1 2)) ; => "[1, 2]"
(linked-from-JSON "[1, 2]") ; => (linked/set 1 2)

Thanks!

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