khrt / Raisin

Raisin - a REST API micro framework for Perl 🐫 🐪
61 stars 30 forks source link

Serialize JSON #58

Closed beccon4 closed 5 years ago

beccon4 commented 5 years ago

Ist there an easier way to return Perl objects (blessed or Moose) than to

Returning blessed objects to YAML seems to work out of the box. JSON support for plain hashes is also implemented in Raisin.

But perhaps I'm missing the direct path.

khrt commented 5 years ago

If I understand your question correctly, there is no way expect of patching Raisin/Encoder/JSON

khrt commented 5 years ago

Fixed by #62