Closed dharrigan closed 2 years ago
Hi,
After some more experimentation, figured it out:
const encoded = toEDNString(
[[
{key: "foo/bar"}, {map: [[{key: "message"}, "wibble"]] }
]]
);
😃
Hey @dharrigan merry christmas :tada: and great you figured out a way to transform the data structure with edn-data!
It is awesome to see people actually using the library :slightly_smiling_face: Let me know if you run into other issues!
I am closing this for now if that is alright. Otherwise just reopen.
Hi,
I hope you don't mind me reaching out via github issues, but I'm lost as to how to encode a javascript structure (below), into edn (as a vector of vectors, with each inner vector containing a key/map pair):
javascript:
{"foo/bar": {message: "wibble"}}
expected edn:
[[:foo/bar {:message "wibble"]]
Experimenting with your library, I've got close with:
to give:
[[:foo/bar: [:message "wibble"}]]]
I've tried a few things, with no joy, even trying this:
to give:
[[:foo/bar "{:message \"wibble\"}"]]
And finally:
throws an error:
Would you have any suggestions on how this might be done?
Thank you for your time.