[dancer-users] Call to all Dancer2 plugin writers

Yanick Champoux yanick at babyl.dyndns.org
Mon Oct 26 22:37:35 GMT 2015


On 2015-10-15 02:06 PM, Rubén Amórtegui wrote:
> Is there a way to acces to "to_json" and "from_json"  on the plugin?

Dancer2 uses the module 'JSON', so I'd do the same in the plugin:


	use JSON;

	my $struct = from_json $data;


Or you could use JSON::XS, or any of the different flavors. They all
(should) play well together.

Joy,
`/.



More information about the dancer-users mailing list