Permalink
Browse files

Fixed bug in decoding objects.

  • Loading branch information...
1 parent b479849 commit 9eb6bc62a34b427937777f03e90ccc87b8d39494 @Licenser Licenser committed Mar 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 apps/wiggle/src/wiggle_handler.erl
View
4 apps/wiggle/src/wiggle_handler.erl
@@ -60,9 +60,9 @@ decode(Req) ->
_ ->
case lists:keyfind(ContentType, 1, accepted()) of
{_, from_json} ->
- jsx:decode(Body);
+ jsxd:from_list(jsx:decode(Body));
{_, from_msgpack} ->
- msgpack:unpack(Body, [jsx])
+ jsxd:from_list(msgpack:unpack(Body, [jsx]))
end
end,
{ok, Decoded, Req1}.

0 comments on commit 9eb6bc6

Please sign in to comment.