what to do, when clojure map contains reserved kewords, like :@number?
it's ok, in code you can use (keyword "@number") and be happy with that, but what to do to serialize map, or, when you need it as sample data for tests?
in that case you can use
clojure.walk
(clojure.walk/stringify-keys m)
and after that
(clojure.walk/keywordize-keys m)
it's ok, in code you can use (keyword "@number") and be happy with that, but what to do to serialize map, or, when you need it as sample data for tests?
in that case you can use
clojure.walk
(clojure.walk/stringify-keys m)
and after that
(clojure.walk/keywordize-keys m)
Комментарии
Отправить комментарий