Subject: | JSend and convert_blessed |
Date: | Fri, 22 Apr 2016 16:19:31 -0400 |
To: | bug-JSON-JSend [...] rt.cpan.org |
From: | Nebulous <nebulous [...] crashed.net> |
Hi,
Thanks for writing JSON::JSend. I would like to use it in a project
but am running into a snag: namely that I need the convert_blessed
option to be set when generating JSON.
Could you add an option to the constructor which allows for JSON
parameters such as convert_blessed to be passed?
For example:
my $jsend = JSON::JSend->new( json_options=>{ convert_blessed=>1 });
A patch to JSend.pm is attached.
-John
Message body is not shown because sender requested not to inline it.