3 ms·
The only issue I thought about would be when using json as I guess this would lose the namespace infos. Did you have issue with that ?
by iorekz 8y ago
The only issue I thought about would be when using json as I guess this would lose the namespace infos. Did you have issue with that ?
- lvh 8y agoSorta! Cheshire gives you a key-fn entry point. For small JSON objects you may just want the same namespace and then that is sufficient. Otherwise you can look up the right namespace in that fn or walk that tree (I’ve used specter for this) to correctly annotate.
- escherize 8y agoHere's some valid json that might be useful: {"signup/username": "John", "signup/password": "pg4pres"} Then, because you can pass in a function to get called on the keys, just check for a regex like (.+)/(.+) and turn it into a keyword. Here I'll write a function like that real quick using a repl with a nice ux: https://s3-us-east-2.amazonaws.com/photoblobs/Screen_Recording_2018-10-07_at_1.53.55_PM.mov https://s3-us-east-2.amazonaws.com/photoblobs/Screen_Recordi...
- jwr 8y agoI keep my data in a JSON database (RethinkDB). This is not a problem at all: namespaced keywords are converted to strings and the conversion is well-defined in both directions.