Fork me on GitHub
#schema
<
2016-11-23
>
edbond14:11:26

How to convert (coerce) string keys to keywords in json? { “date” “2016-01-01” }

frank15:11:29

@edbond I don’t think schema will help with that, but cheshire (json parsing library) does that

edbond16:11:48

yes, this can be done on parsing phase. Just wondered if it’s possible to coerce keys too. I thought json-coercion does string->keyword coversion

edbond16:11:21

actually cljs-http converts keys to keywords automatically

edbond16:11:14

and camel-snake-kebab.core transforms to kebab-case