ngrunwald / ring-middleware-format

Ring middleware for parsing parameters and emitting responses in JSON or other formats
163 stars 49 forks source link

Nested maps. #34

Closed danielsz closed 9 years ago

danielsz commented 9 years ago

Hi,

I'm sending nested Clojure maps over the wire with clj-http (transit+json is set as the content-type). On the other side, where ring-middleware-format is used, the maps are transformed into json arrays.

In other words, this is what is happening:

This goes in:

{:twitter {:access-token-response {:user_id "123577893"}}}

This goes out:

:params {"twitter[access-token-response][user_id]"
         "123577893"}. 

What I would like to achieve:

This goes in:

{:twitter {:access-token-response {:user_id "123577893"}}}

This goes out:

:params {:twitter {:access-token-response {:user_id "123577893"}}}

Or in other words, how do I serialize/deserialize nested Clojure maps?

Thank you in advance.

Deraen commented 9 years ago

Can't reproduce.