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

parse/unparse from/to JSON map? #20

Open
cmal opened this issue Sep 15, 2023 · 0 comments
Open

parse/unparse from/to JSON map? #20

cmal opened this issue Sep 15, 2023 · 0 comments

Comments

@cmal
Copy link

cmal commented Sep 15, 2023

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!

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