This is with 0.3.2. I can move to the 0.4.0rc if needed, just tend to
> On 10 May 2010 21:22, Adam Jones <
ajon...@gmail.com> wrote:
>
>
>
>
>
> > For the project I'm working on, the server will almost exclusively
> > emit JSON. It's not intended for normal web traffic, just write & read
> > JSON with a REST interface. I already have something like this:
>
> > (defn emit-json
> > "Turn the object into json as normal, then set the map to emit
> > correct content types"
> > ([x]
> > (emit-json x (hash-map)))
> > ([x m]
> > (merge
> > {:headers {"Content-Type" "application/json"}
> > :body (json-str x)}
> > m)))
>
> > Which lets me just dump a map and have things work, however that means
> > explicitly calling emit-json for each function. Is there any simple
> > way to set things up so this is always run and other content types are
> > the special case?
>
> > --
> > You received this message because you are subscribed to the Google Groups "Compojure" group.
> > To post to this group, send email to
comp...@googlegroups.com.
> > To unsubscribe from this group, send email to
compojure+...@googlegroups.com.