We faced the same issue we junked 
{json,Object} to

{output, jsx:encode(Object),
  [{<<"Content-Type">>, <<"application/json">>}]}



The json parser of chicagoboss is a bit old
On Saturday, 13 December 2014 19:19:37 UTC+5:30, Caiyun Deng wrote:
>
> Hi!
> I use my erlydtl branch https://github.com/dcy/erlydtl, and it can use 
> maps.
> But i found that i can't return json with maps.
> The controller code "{ok, [{account, Account}]}" works fine, the Account 
> is maps.
> And the controller code "{json, [{recommend_game, 
> maps:to_list(RecommendGame)}]}" works fine, and "{json, [{recommend_game, 
> RecommendGame}]}" does not work.
> How can i return json with maps?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/14b4c6e4-f0b0-407a-afc7-670087056ce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to