[PerlChina] 大家有将DBIC和JSON结合起来用过么?
Fayland Lam
fayland at gmail.com
Mon Mar 17 00:32:01 PDT 2008
cui robin wrote:
> Hi,all
>
> 我正在使用catalyst来构建一个站点,客户端使用了yahoo的YUI,希望请求得到
> 的数据是JSON格式的。
>
> 可我现在不知道如何将DBIC模块得到的数据转换成JSON格式的字串?
>
> DBIC的结果都是object, 大家有知道怎么转换么, 有现成的模块可以用么?
试试 Catalyst::View::JSON 这个应该是你要的。
>
>
> robin
> ------------------------------------------------------------------------
>
> _______________________________________________
> China-pm mailing list
> China-pm at pm.org
> http://mail.pm.org/mailman/listinfo/china-pm
--
Fayland Lam // http://www.fayland.org/
Foorum based on Catalyst // http://www.foorumbbs.com/
More information about the China-pm
mailing list