« Index of all namespaces of this project
Middleware to perform JSON transformations on core.async messages. JSON doesn't support keywords or symbols, so these get translated into strings when JSONified. When decoding JSON, we have no way of knowing what strings are supposed to be keywords or symbols, so all input strings stay strings. As a special case, the parser will translate strings that are map keys into keywords for us.
Reads strings from the given source channel, JSON decodes them, and outputs them to the returned channel.
Returns a new channel that accepts strings, JSON decodes them, and outputs them to the given target channel.
Accepts arbitrary Clojure data on the given channel, JSON encodes it, and outputs the resulting strings to the returned channel.