I've recently started using lots of JSON on one of my current application so I felt the need to come up with a DBIC row to JSON serializer.
It's currently under internal use only but I thought it might be useful to other people, so I might be releasing it to the CPAN. But first, I thought it would be wise to ask around if this is indeed needed or if there already is a better solution that I'm unware of. The serializer is implemented as a DBIC component and is fairly simplistic. It is also kind of intrusive when dealing with relationships (but, for me, it's just DWIM). Attached you'll find the code for DBIx::Class::JSON. I could polish it up, writing documentation and some test cases if it does end up being released. I also recognize that it needs some improvement so I'd be glad if someone helped me out with new ideas or code. Either way, a good DBIC to JSON serializer is something that would benefit DBIC a lot, IMO. So if my implementation blows to the point that it's unfixable, I'd also be glad to help out if anyone provided a good replacement. -Nilson Santos F. Jr.
JSON.pm
Description: Binary data
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
