Thanks! I will try it. Maybe it is not the json parser is too old, i upgrade the json deps to latest version, it also does not work.
在 2015年1月5日星期一UTC+8下午6时32分49秒,[email protected]写道: > > > 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/a54e3434-0db2-4b67-9ae3-9cb8754383eb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
